
:root {
--sans: 'Work Sans', sans-serif;
}

/* =========================================================
   ENSKOOL PREMIUM MEDIA
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:var(--sans);
    background: #f7f8fc;
    color: #181a2d;
}


/* =========================================================
   SECTION
========================================================= */

.gallery-section {
    position: relative;
    min-height: 100vh;
    padding: 100px 0 120px;
    overflow: hidden;
    background: #f7f8fc;
}

.gallery-section::before {
    content: "";
    position: absolute;
    width: 550px;
    height: 550px;
    top: -280px;
    right: -180px;
    border-radius: 50%;
    background: rgba(75, 75, 215, 0.055);
    pointer-events: none;
}

.gallery-section::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    bottom: -250px;
    left: -180px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.035);
    pointer-events: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.gallery-container {
    position: relative;
    z-index: 2;

    width: min(1240px,
            calc(100% - 40px));

    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.gallery-header {
    margin-bottom: 42px;
}

.gallery-heading {
    max-width: 720px;
}

.gallery-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 14px;

    color: #4b4bd7;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .16em;

    text-transform: uppercase;
}

.gallery-eyebrow::before {
    content: "";

    width: 28px;
    height: 2px;

    border-radius: 99px;

    background: #4b4bd7;
}

.gallery-heading h1 {
    /* margin: 0; */
    color: #17192c;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: 1px;

}

.gallery-heading h1 span {
    color: #4b4bd7;
}

.gallery-heading p {
    max-width: 600px;

    margin: 18px 0 0;

    color: #737589;

    font-size: 16px;
    line-height: 1.75;
}


/* =========================================================
   TOOLBAR
========================================================= */

.gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
    padding: 14px;

    background: rgba(255,
            255,
            255,
            .88);

    border: 1px solid rgba(25,
            27,
            50,
            .07);

    border-radius: 18px;

    box-shadow:
        0 14px 40px rgba(30,
            31,
            60,
            .065);

    backdrop-filter: blur(15px);
}


/* =========================================================
   FILTERS
========================================================= */

.gallery-filters {
    display: flex;
    align-items: center;
    gap: 6px;

    flex-wrap: wrap;
}

.gallery-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 42px;

    padding: 0 17px;

    border: 0;
    border-radius: 11px;

    background: transparent;

    color: #67697b;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        color .25s ease,
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.gallery-filter:hover {
    color: #4b4bd7;
    background: #f0f0ff;

    transform: translateY(-1px);
}

.gallery-filter.active {
    color: #fff;

    background: #4b4bd7;

    box-shadow:
        0 7px 20px rgba(75,
            75,
            215,
            .25);
}

.filter-icon {
    font-size: 14px;
}


/* =========================================================
   SEARCH
========================================================= */

.gallery-search {
    position: relative;

    width: 270px;

    flex-shrink: 0;
}

.gallery-search>svg {
    position: absolute;

    top: 50%;
    left: 15px;

    width: 18px;
    height: 18px;

    transform: translateY(-50%);

    fill: none;

    stroke: #8b8d9d;

    stroke-width: 1.8;

    pointer-events: none;
}

.gallery-search input {
    width: 100%;
    height: 44px;

    padding:
        0 40px 0 44px;

    border: 1px solid #e4e5ed;

    border-radius: 11px;

    outline: none;

    background: #fff;

    color: #202236;

    font-family: inherit;
    font-size: 13px;

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

.gallery-search input::placeholder {
    color: #a0a1ae;
}

.gallery-search input:focus {
    border-color: #7777df;

    box-shadow:
        0 0 0 4px rgba(75,
            75,
            215,
            .08);
}

.search-clear {
    position: absolute;

    top: 50%;
    right: 10px;

    width: 25px;
    height: 25px;

    transform: translateY(-50%);

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: #8d8f9e;

    font-size: 19px;

    line-height: 1;

    cursor: pointer;

    opacity: 0;

    pointer-events: none;

    transition: .2s ease;

    display: none;
}

.gallery-search.has-value .search-clear {
    opacity: 1;
    pointer-events: auto;
}

.search-clear:hover {
    background: #f0f0f6;
    color: #202235;
}


/* =========================================================
   RESULT BAR
========================================================= */

.gallery-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.gallery-result-bar p {
    margin: 0;

    color: #858696;

    font-size: 13px;
}

.gallery-result-bar strong {
    color: #282a3e;
}

.clear-filters {
    border: 0;

    padding: 0;

    background: transparent;

    color: #4b4bd7;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   GRID
========================================================= */

.gallery-grid {
    display: grid;

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

    gap: 24px;
}


/* =========================================================
   CARD
========================================================= */

.gallery-card {
    min-width: 0;

    overflow: hidden;

    background: #fff;

    border: 1px solid rgba(25,
            27,
            48,
            .06);

    border-radius: 20px;

    box-shadow:
        0 12px 35px rgba(28,
            30,
            55,
            .06);

    transition:
        transform .35s cubic-bezier(.2,
            .8,
            .2,
            1),
        box-shadow .35s ease;
}

.gallery-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 25px 55px rgba(28,
            30,
            55,
            .12);
}


/* =========================================================
   MEDIA
========================================================= */

.gallery-media {
    position: relative;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #171827;
}

.gallery-media img,
.gallery-media video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .65s cubic-bezier(.2,
            .8,
            .2,
            1);
}

.gallery-card:hover .gallery-media img,
.gallery-card:hover .gallery-media video {
    transform: scale(1.045);
}


/* =========================================================
   MISSING MEDIA
========================================================= */

.media-missing {
    display: flex;

    width: 100%;
    height: 100%;

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

    color: rgba(255,
            255,
            255,
            .65);

    font-size: 13px;
}


/* =========================================================
   MEDIA BADGE
========================================================= */

.media-type-badge {
    position: absolute;

    top: 14px;
    left: 14px;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding:
        7px 10px;

    border-radius: 8px;

    color: #fff;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .04em;

    backdrop-filter: blur(12px);
}

.photo-badge {
    background:
        rgba(34,
            36,
            58,
            .67);
}

.video-badge {
    background:
        rgba(75,
            75,
            215,
            .88);
}


/* =========================================================
   VIDEO BUTTON
========================================================= */

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;

    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;

    transform: translate(-50%, -50%);

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

    background: rgba(255, 255, 255, 0.16);
    color: #fff;

    backdrop-filter: blur(12px);

    /* Enable button click */
    pointer-events: auto;
    cursor: pointer;
    z-index: 5;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

/* Hover Effect */
.gallery-card:hover .video-play-button {
    transform: translate(-50%, -50%) scale(1.08);

    background: rgba(75, 75, 215, 0.9);
}

/* Play Icon */
.video-play-button span {
    margin-left: 3px;
    font-size: 17px;
}


/* =========================================================
   OVERLAY
========================================================= */

.gallery-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: flex-end;

    padding: 22px;

    background:
        linear-gradient(to top,
            rgba(8,
                9,
                20,
                .84),
            rgba(8,
                9,
                20,
                .12) 65%,
            transparent);

    opacity: 0;

    transition:
        opacity .35s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    width: 100%;

    transform:
        translateY(12px);

    transition:
        transform .35s ease;
}

.gallery-card:hover .overlay-content {
    transform:
        translateY(0);
}

.gallery-category {
    display: inline-flex;

    margin-bottom: 7px;

    padding:
        5px 9px;

    border-radius: 6px;

    background:
        rgba(255,
            255,
            255,
            .14);

    color: #fff;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;

    backdrop-filter: blur(8px);
}

.overlay-content h2 {
    margin:
        0 0 12px;

    color: #fff;

    font-size: 18px;

    line-height: 1.25;
}

.gallery-view-btn {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #fff;

    font-family: inherit;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
}

.gallery-view-btn svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;
}


/* =========================================================
   CONTENT
========================================================= */

.gallery-card-content {
    padding:
        20px 21px 22px;
}

.card-category {
    display: inline-block;

    margin-bottom: 8px;

    color: #4b4bd7;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .1em;

    text-transform: uppercase;
}

.gallery-card-content h3 {
    margin: 0;

    color: #202236;

    font-size: 18px;

    line-height: 1.35;

    font-weight: 750;
}

.gallery-card-content p {
    display: -webkit-box;

    overflow: hidden;

    margin:
        9px 0 0;

    color: #818393;

    font-size: 13px;

    line-height: 1.65;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-badge {
    background: rgba(75, 75, 215, .9);
}


/* =========================================================
   HIDDEN CARD
========================================================= */

.gallery-card.gallery-hidden {
    display: none;
}


/* =========================================================
   EMPTY
========================================================= */

.gallery-empty,
.gallery-no-results {
    grid-column: 1 / -1;

    padding:
        90px 20px;

    text-align: center;
}

.gallery-no-results {
    display: none;
}

.empty-icon {
    display: grid;

    width: 64px;
    height: 64px;

    margin:
        0 auto 18px;

    place-items: center;

    border-radius: 50%;

    background: #ededff;

    color: #4b4bd7;

    font-size: 28px;
}

.gallery-empty h3,
.gallery-no-results h3 {
    margin: 0;

    color: #25273b;

    font-size: 21px;
}

.gallery-empty p,
.gallery-no-results p {
    margin:
        8px 0 20px;

    color: #858696;

    font-size: 14px;
}

.reset-gallery-btn {
    padding:
        11px 18px;

    border: 0;

    border-radius: 9px;

    background: #4b4bd7;

    color: #fff;

    font-family: inherit;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.gallery-lightbox {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

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

    padding: 30px;

    visibility: hidden;

    opacity: 0;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.gallery-lightbox.open {
    visibility: visible;
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(7,
            8,
            18,
            .93);

    backdrop-filter: blur(10px);
}

.lightbox-dialog {
    position: relative;

    z-index: 2;

    width:
        min(1100px,
            92vw);

    max-height: 92vh;

    display: flex;

    align-items: center;

    justify-content: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 78vh;
}

.lightbox-content img,
.lightbox-content video {
    display: block;

    max-width: 100%;
    max-height: 78vh;

    border-radius: 12px;

    object-fit: contain;

    box-shadow:
        0 30px 90px rgba(0,
            0,
            0,
            .45);
}

.lightbox-close {
    position: fixed;

    top: 22px;
    right: 25px;

    z-index: 5;

    width: 45px;
    height: 45px;

    border:
        1px solid rgba(255,
            255,
            255,
            .15);

    border-radius: 50%;

    background:
        rgba(255,
            255,
            255,
            .08);

    color: #fff;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;
}

.lightbox-arrow {
    position: fixed;

    top: 50%;

    z-index: 5;

    width: 48px;
    height: 48px;

    transform:
        translateY(-50%);

    border:
        1px solid rgba(255,
            255,
            255,
            .15);

    border-radius: 50%;

    background:
        rgba(255,
            255,
            255,
            .08);

    color: #fff;

    font-size: 35px;

    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease;
}

.lightbox-arrow:hover,
.lightbox-close:hover {
    background:
        rgba(255,
            255,
            255,
            .18);
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-info {
    position: absolute;

    left: 50%;
    bottom: -48px;

    width: 90%;

    transform:
        translateX(-50%);

    text-align: center;

    color: #fff;
}

.lightbox-info strong {
    display: block;

    font-size: 16px;
}

.lightbox-info span {
    display: block;

    margin-top: 4px;

    color:
        rgba(255,
            255,
            255,
            .65);

    font-size: 12px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .gallery-section {
        padding:
            80px 0 90px;
    }

    .gallery-grid {
        grid-template-columns:
            repeat(2,
                minmax(0, 1fr));
    }

    .gallery-toolbar {
        align-items: stretch;

        flex-direction: column;
    }

    .gallery-search {
        width: 100%;
    }

}


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

@media (max-width: 640px) {

    .gallery-section {
        padding:
            60px 0 70px;
    }

    .gallery-container {
        width:
            calc(100% - 28px);
    }

    .gallery-header {
        margin-bottom: 30px;
    }

    .gallery-heading h1 {
        font-size: 40px;
    }

    .gallery-heading p {
        font-size: 14px;
    }

    .gallery-toolbar {
        padding: 10px;

        border-radius: 15px;
    }

    .gallery-filters {
        display: grid;

        grid-template-columns:
            repeat(2,
                1fr);

        width: 100%;
    }

    .gallery-filter {
        width: 100%;

        padding:
            0 8px;
    }

    .gallery-search {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .gallery-result-bar {
        margin-bottom: 15px;
    }

    .gallery-overlay {
        opacity: 1;

        padding: 16px;

        background:
            linear-gradient(to top,
                rgba(8,
                    9,
                    20,
                    .72),
                transparent);
    }

    .overlay-content {
        transform: none;
    }

    .gallery-card-content {
        padding: 17px;
    }

    .gallery-card-content h3 {
        font-size: 16px;
    }

    .lightbox-arrow {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .gallery-lightbox {
        padding: 15px;
    }

}


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

@media (max-width: 380px) {

    .gallery-heading h1 {
        font-size: 34px;
    }

    .gallery-filter {
        font-size: 12px;
    }

    .gallery-result-bar {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

}