.collection-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 15px;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* For tablets (up to 768px) */
@media (min-width: 768px) {
    .collection-container {
        grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    }
}

/* For desktops (min-width: 1024px) */
@media (min-width: 1024px) {
    .collection-container {
        grid-template-columns: repeat(5, 1fr); /* 5 cards per row */
        max-width: 70vw !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.collection-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease; /* Transition for border color */
    text-decoration: none; /* Remove the default underline */
    color: inherit; /* Ensure the text color is inherited from parent */
}

.collection-thumbnail {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 9/16 = 0.5625 * 100% */
    background-color: #000000;
    border: 1px solid rgb(161, 161, 161);
    overflow: hidden;
}

.collection-thumbnail img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.collection-thumbnail2 {
    width: 100%;
    position: relative;
    padding-top: 133.33%; /* (4 / 3) * 100% = 133.33% */
    background-color: #000000;
    border: 1px solid rgb(161, 161, 161);
    overflow: hidden;
}

.collection-thumbnail2 img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.collection-info {
    flex-grow: 1; /* Take up available space and push metadata down */
    padding-top: 0px;
}

.video-collection {
    font-size: 12px;
    text-align: left;
    font-weight: bold;
    display: inline-block;
    white-space: normal;
    width: auto;
    border-radius: 10px;  /* Rounded corners */
}

.collection-title {
    font-size: 14px;
    text-align: left;
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 0px;
}

.video-metadata {
    padding-bottom: 5px;
}

.video-metadata a{
    font-size: 11px;
}