﻿
/*==========================
    GRID LAYOUT
==========================*/

.showListing .showListing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 16px;
}

.showListing .showListing-grid-item {
    width: 100%;
    height: 100%;

}

.showListing .showListing-grid-item-large {
    grid-column: span 3;
    grid-row: span 2;
   
}

/*==========================
    LARGE BANNER
==========================*/

.showListing .showListingBanner,
.showListing .showListingBanner .banner {
    width: 100%;
    aspect-ratio: 952 / 524;
    height: auto;
    position: relative;
    overflow: hidden;
}

    .showListing .showListingBanner .banner-image {
        position: absolute;
        inset: 0;
        width: 100%;
        aspect-ratio: 952 / 524;
        height: auto;
        object-fit: cover;
    }

    .showListing .showListingBanner .banner-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(0, 0, 0, 0) 0%, #000 100% );
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
        padding: 16px;
        box-sizing: border-box;
    }

    .showListing .showListingBanner .banner-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        direction: rtl;
    }

    .showListing .showListingBanner .banner-author {
        color: #B8B8B8;
        font-size: 18px;
        font-weight: 400;
        margin: 0 0 8px;
    }

    .showListing .showListingBanner .banner-title {
        color: #FFF;
        font-size: 24px;
        font-family: DroidKufiBold;
        margin: 0;
    }

/*==========================
    PLACEHOLDER ITEMS
==========================*/

.showListing .showListing-grid-item:not(.showListing-grid-item-large) {
    background: #1D1D1D;
}


@media (min-width: 1420px) and (max-width: 1919px) {
    .showListing .showListing-grid {
        grid-auto-rows: 215px;
        gap: 16px;
    }
}

@media (min-width: 1360px) and (max-width: 1420px) {
    .showListing .showListing-grid {
        grid-auto-rows: 210px;
        gap: 16px;
    }
}

@media (min-width: 1280px) and (max-width: 1360px) {
    .showListing .showListing-grid {
        grid-auto-rows: 190px;
        gap: 16px;
    }
}


/*==========================
    TABLET
==========================*/

@media (min-width: 1024px) and (max-width: 1280px) {
    .showListing .showListing-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 190px;
        gap: 16px;
    }

    .showListing .showListing-grid-item-large {
        grid-column: 1 / -1;
        grid-row: 1;
        height: 190px;
    }

    .showListing .showListingBanner,
    .showListing .showListingBanner .banner {
        width: 100%;
        height: auto;
        aspect-ratio: 445 /190;
    }

  .showListing .showListingBanner .banner-image {
            width: 100%;
            height: auto;
            aspect-ratio: 340 /187;
            object-fit: cover;
        }



    .showListing .showListingBanner .banner-overlay {
        padding: 14px;
    }

    .showListing .showListingBanner .banner-author {
        font-size: 16px;
    }

    .showListing .showListingBanner .banner-title {
        font-size: 20px;
    }

}


@media (min-width: 768px) and (max-width: 1024px) {

    .showListing .showListing-grid {
        grid-auto-rows: 250px;
        gap: 16px;
    }

    .showListing .showListingBanner .banner-overlay {
        padding: 14px;
    }

    .showListing .showListingBanner .banner-author {
        font-size: 16px;
    }

    .showListing .showListingBanner .banner-title {
        font-size: 20px;
    }
}


@media (min-width: 768px) and (max-width: 1024px) {

    .showListing .showListing-grid {
        grid-auto-rows: 250px;
        gap: 16px;
    }

    .showListing .showListingBanner .banner-overlay {
        padding: 14px;
    }

    .showListing .showListingBanner .banner-author {
        font-size: 16px;
    }

    .showListing .showListingBanner .banner-title {
        font-size: 20px;
    }
}

@media (min-width: 480px) and (max-width: 768px) {

    .showListing .showListing-grid {
        grid-auto-rows: 190px;
        gap: 16px;
    }

    .showListing .showListingBanner .banner-overlay {
        padding: 14px;
    }

    .showListing .showListingBanner .banner-author {
        font-size: 16px;
    }

    .showListing .showListingBanner .banner-title {
        font-size: 20px;
    }
}

/*==========================
    MOBILE
==========================*/

@media (max-width: 480px) {

    .showListing .showListing-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 184px;
        gap: 12px;
    }

    .showListing .showListing-grid-item-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .showListing .showListingBanner,
    .showListing .showListingBanner .banner {
        width: 100%;
        height: 100%;
    }

        .showListing .showListingBanner .banner-overlay {
            padding: 10px;
        }

        .showListing .showListingBanner .banner-author {
            font-size: 14px;
        }

        .showListing .showListingBanner .banner-title {
            font-size: 18px;
        }
}


/*==========================
    SMALL GRID CARDS
==========================*/

.showListing .showListing-grid-item:not(.showListing-grid-item-large) {
    display: flex;
    flex-direction: column;
    background: #1D1D1D;
    overflow: hidden;
}

.showListing .showListing-grid-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 300 / 169;
    object-fit: cover;
    display: block;
}

.showListing .showListing-grid-card-content {
    padding: 10px;
    display: flex;
    align-content:center;
    justify-content:center;
    flex-direction: column;
    gap: 10px;
    direction: rtl;
    flex: 1;
}

.showListing .showListing-grid-card-author {
    margin: 0;
    color: #B8B8B8;
    font-size: 14px;
    font-family: DroidKufiBold;
    line-height: 1.4;
}

.showListing .showListing-grid-card-title {
    margin: 0;
    color: #FFF;
    font-size: 16px;
    font-family: DroidKufiBold;
    line-height: 1.5;
}

@media (max-width: 767px) {

    /* ...your existing styles... */

    .showListing .showListing-grid-card-author {
        font-size: 12px;
    }

    .showListing .showListing-grid-card-title {
        font-size: 14px;
    }
}