/* ============================================================
   DJ AMSAL - SHARED GALLERY STYLES

   Used by:
   - dj_events.php
   - wedding_events.php
   - remix_videos.php
============================================================ */


/* ============================================================
   PLAYER END CARD
============================================================ */

.event-player-video-wrap,
.wedding-player-video-wrap,
.remix-player-video-wrap {
    position: relative;
}

.amsal-player-endcard {
    position: absolute;
    inset: 0;
    z-index: 8;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: #000;
    color: #fff;

    padding: 30px;
}

.amsal-player-endcard.is-visible {
    display: flex;
}

.amsal-player-endcard img {
    width: min(150px, 30%);
    height: auto;
    margin: 0 0 8px;
}

.amsal-end-name {
    margin-top: 4px;

    font:
        700 clamp(20px, 2.2vw, 34px)/1.2
        "DM Sans", sans-serif;
}

.amsal-end-booking {
    margin-top: 24px;

    font:
        600 clamp(16px, 1.5vw, 22px)/1.3
        "DM Sans", sans-serif;
}

.amsal-player-endcard a {
    margin-top: 18px;

    color: #fff;
    text-decoration: underline;

    font:
        700 clamp(16px, 1.5vw, 22px)/1.3
        "DM Sans", sans-serif;
}


/* ============================================================
   SHARED EXPLORE BUTTON
============================================================ */

.event-expand-row,
.wedding-expand-row,
.remix-expand-row {
    margin: 10px 0 34px;

    border-top: 1px solid #34373a;
    border-bottom: 1px solid #34373a;
}

.event-expand-btn,
.wedding-expand-btn,
.remix-expand-btn {
    width: 100%;
    min-height: 72px;

    display: grid;
    grid-template-columns: 1fr auto 24px;
    align-items: center;
    gap: 16px;

    padding: 12px 18px;

    border: 0;
    background: transparent;

    color: #fff;

    text-align: left;
    cursor: pointer;

    font:
        600 13px/1.2
        "DM Sans", sans-serif;
}


/* Actual visible Explore button */

.event-explore-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: max-content;

    min-width: 190px;
    min-height: 46px;

    padding: 0 25px;

    border: 1px solid rgba(255,255,255,.75);
    border-radius: 2px;

    background: transparent;
    color: #fff;

    font:
        600 12px/1
        "DM Sans", sans-serif;

    letter-spacing: .4px;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
}

.event-expand-btn:hover .event-explore-label,
.wedding-expand-btn:hover .event-explore-label,
.remix-expand-btn:hover .event-explore-label {
    background: #fff;
    color: #090a0b;
    border-color: #fff;
}


/* Count */

.event-expand-count,
.expand-count {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #92969b;
}


/* + / X */

.event-expand-icon,
.expand-symbol {
    font-size: 21px;
    font-weight: 300;
    text-align: right;

    transition: transform .25s ease;
}

.event-expand-btn[aria-expanded="true"] .event-expand-icon {
    transform: rotate(45deg);
}


/* ============================================================
   EVENTS - 3 FEATURED VIDEOS
============================================================ */

.event-featured-showcase {
    max-width: 1240px;

    margin: 55px auto 70px;

    padding-top: 18px;

    border-top: 1px solid #34373a;

    color: #fff;
}

.event-showcase-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 28px;

    color: #aeb1b5;

    font:
        600 10px/1.2
        "DM Sans", sans-serif;

    letter-spacing: 1.6px;
}

.event-featured-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 38px;
}

.event-featured-film {
    min-width: 0;
}

.event-featured-film video {
    display: block;

    width: 100%;

    aspect-ratio: 9/12;

    object-fit: cover;

    background: #000;

    border: 1px solid #3b3e42;
    border-radius: 7px;

    padding: 5px;

    box-shadow:
        0 12px 32px rgba(0,0,0,.22);
}

.event-featured-info {
    display: grid;

    grid-template-columns: 24px 1fr;

    align-items: center;

    padding: 13px 0 15px;

    border-bottom: 1px solid #34373a;
}

.event-featured-info span {
    color: #85898e;

    font:
        500 10px/1
        "DM Sans", sans-serif;
}

.event-featured-info h3 {
    margin: 0;

    color: #fff;

    font:
        600 13px/1.3
        "DM Sans", sans-serif;
}


/* ============================================================
 
/* ============================================================
   EVENTS - DATABASE COLLECTION
   EXACTLY MATCH WEDDING DATABASE COLLECTION
============================================================ */

.event-database-collection {
    display: none !important;

    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

    gap: 28px 32px !important;

    margin-top: 30px !important;

    width: 100% !important;
}

.event-database-collection.is-open {
    display: grid !important;
}

.event-database-collection .event-extra-item {
    display: block !important;

    width: 82% !important;

    justify-self: center !important;

    color: #fff !important;

    text-decoration: none !important;
}

.event-database-collection .event-image-box {
    aspect-ratio: 16/9 !important;

    border-radius: 5px !important;

    overflow: hidden !important;
}

.event-database-collection .event-image-box img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
}

.event-database-collection .event-video-info {
    padding: 9px 0 11px !important;
}

.event-database-collection .event-video-info h3 {
    font-size: 12px !important;
}


/* ============================================================
   WEDDING - 3 FEATURED VIDEOS
============================================================ */

.wedding-intro-films {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: clamp(24px, 3vw, 44px);

    align-items: start;

    margin: 0 0 34px;
}

.wedding-intro-film {
    min-width: 0;
}

.wedding-intro-film video {
    display: block;

    width: 100%;

    aspect-ratio: 9/12;

    object-fit: cover;

    background: #000;

    border: 1px solid #303337;
    border-radius: 8px;

    padding: 6px;

    box-shadow:
        0 18px 40px rgba(0,0,0,.24);
}

.wedding-intro-film-info {
    display: grid;

    grid-template-columns: auto 1fr;

    gap: 13px;

    align-items: center;

    padding: 13px 2px;

    border-bottom: 1px solid #34373a;
}

.wedding-intro-film-info span {
    color: #85898e;

    font:
        500 9px/1
        "DM Sans", sans-serif;

    letter-spacing: 1px;
}

.wedding-intro-film-info h3 {
    margin: 0 !important;

    color: #fff !important;

    font:
        600 14px/1.3
        "DM Sans", sans-serif !important;
}


/* ============================================================
   WEDDING - 9 DATABASE VIDEOS
============================================================ */

.wedding-database-grid {
    display: none !important;

    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

    gap: 28px 32px !important;

    margin-top: 30px !important;
}

.wedding-database-grid.is-expanded {
    display: grid !important;
}


/*
   Keep database wedding videos smaller than
   the three featured videos.
*/

.wedding-database-grid .wedding-extra-item {
    display: block !important;

    width: 82% !important;

    justify-self: center !important;

    color: #fff !important;

    text-decoration: none !important;
}

.wedding-database-grid .wedding-image-box {
    aspect-ratio: 16/9 !important;

    border-radius: 5px !important;

    overflow: hidden !important;
}

.wedding-database-grid .wedding-image-box img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
}

.wedding-database-grid .wedding-video-info {
    padding: 9px 0 11px !important;
}

.wedding-database-grid .wedding-video-info h3 {
    font-size: 12px !important;
}


/* ============================================================
   REMIX EXPANDED COLLECTION
============================================================ */

.remix-extra-item {
    color: #fff;
    text-decoration: none;
}

.remix-extra-item .remix-image-box {
    overflow: hidden;

    aspect-ratio: 16/9;

    background: #0b0c0d;

    border-radius: 5px;
}

.remix-extra-item .remix-image-box img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ============================================================
   MODAL / POPUP COMMON
============================================================ */

body.event-modal-open,
body.wedding-modal-open,
body.remix-modal-open {
    overflow: hidden;
}

.event-player-overlay,
.wedding-player-overlay,
.remix-player-overlay {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0,0,0,.92);
}

.event-player-overlay.is-open,
.wedding-player-overlay.is-open,
.remix-player-overlay.is-open {
    display: flex;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 760px) {

    .event-featured-showcase {
        margin: 38px auto 48px;
    }

    .event-featured-grid,
    .wedding-intro-films {
        grid-template-columns: 1fr !important;

        gap: 30px;
    }

    .event-featured-film video,
    .wedding-intro-film video {
        aspect-ratio: 9/12;

        max-height: 620px;
    }

    .event-showcase-head {
        margin-bottom: 20px;
    }


    /* Event database */

    .event-database-collection {
        width: 100% !important;

        grid-template-columns: 1fr !important;

        gap: 26px !important;
    }


    /* Wedding database */

    .wedding-database-grid.is-expanded {
        grid-template-columns: 1fr !important;
    }

    .wedding-database-grid .wedding-extra-item {
        width: 100% !important;
    }


    /* Explore button */

    .event-expand-btn,
    .wedding-expand-btn,
    .remix-expand-btn {
        grid-template-columns:
            1fr auto 20px;

        padding-left: 0;
        padding-right: 0;
    }

    .event-explore-label {
        min-width: 160px;
        min-height: 44px;

        padding: 0 18px;

        font-size: 11px;
    }

    .event-expand-count,
    .expand-count {
        font-size: 9px;
    }


    /* Popup */

    .event-player-overlay,
    .wedding-player-overlay,
    .remix-player-overlay {
        padding: 14px;
    }
}

/* ============================================================
   REMIX VIDEO GALLERY
============================================================ */

.remix-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px 38px;
    width: 100%;
    margin: 35px 0 60px;
}

.remix-video-card {
    min-width: 0;
    width: 100%;
}

.remix-video-card > a {
    display: block;
    width: 100%;
    color: #fff;
    text-decoration: none;
}

.remix-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0b0c0d;
    border-radius: 5px;
}

.remix-image-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}

.remix-video-card > a:hover .remix-image-box img {
    transform: scale(1.025);
    opacity: .88;
}


/* PLAY BUTTON */

.remix-image-box::after {
    content: "▶";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(255,255,255,.75);
    border-radius: 50%;

    background: rgba(0,0,0,.45);
    color: #fff;

    font-size: 15px;

    pointer-events: none;
}


/* TITLE ROW */

.remix-video-title {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: center;

    min-height: 52px;
    padding: 10px 0 12px;

    border-bottom: 1px solid #34373a;
}

.remix-video-title h5 {
    margin: 0 !important;
    padding: 0 !important;

    color: #fff !important;

    font:
        600 12px/1.35
        "DM Sans", sans-serif !important;
}

.remix-video-number {
    color: #85898e;

    font:
        500 9px/1
        "DM Sans", sans-serif;

    letter-spacing: 1px;
}

.remix-video-watch {
    color: #aeb1b5;

    font:
        500 9px/1
        "DM Sans", sans-serif;

    letter-spacing: 1.2px;
}


/* ============================================================
   REMIX RESPONSIVE
============================================================ */

@media (max-width: 900px) {

    .remix-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 26px;
    }
}

@media (max-width: 760px) {

    .remix-video-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 25px;
    }

    .remix-image-box {
        aspect-ratio: 16 / 10;
    }

    .remix-video-title {
        grid-template-columns: 26px 1fr auto;
    }
}

/* =========================================================
   MAIN SITE HEADER — MATCH REFERENCE
   Events / Weddings / Mixes
   ========================================================= */

.amsal-header {
    height: 78px !important;
    min-height: 78px !important;
    padding: 0 5% !important;

    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;

    background: #08090a !important;
    border-bottom: 1px solid #292b2e !important;
}

.amsal-brand {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    text-decoration: none !important;
}

.amsal-brand img {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

.amsal-header .amsal-brand strong {
    font-family: "DM Sans", Arial, sans-serif !important;
    font-size: 29px !important;
    font-weight: 800 !important;
    letter-spacing: 3px !important;
    line-height: 1 !important;
    color: #fff !important;
    white-space: nowrap !important;
}

.amsal-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 34px !important;
}

.amsal-nav a {
    font-family: "DM Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.amsal-inquire {
    justify-self: end !important;
    min-width: 92px !important;
    height: 48px !important;
    padding: 0 20px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-family: "DM Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}
