:root {
    --gallery-primary: #ef902d;
    --gallery-primary-dark: #c96e14;
    --gallery-ink: #172033;
    --gallery-muted: #687083;
    --gallery-soft: #fff8f0;
    --gallery-line: rgba(23, 32, 51, .1);
    --gallery-v2-card: rgba(255, 255, 255, .88);
    --gallery-shadow: 0 24px 70px rgba(23, 32, 51, .11);
    --gallery-shadow-soft: 0 14px 34px rgba(23, 32, 51, .09);
}

body {
    background: #fbfbfd;
}

.gallery-page {
    overflow: hidden;
}

.gallery-hero {
    position: relative;
    padding: 120px 0 80px;
    background:
        radial-gradient(circle at 8% 15%, rgba(239, 144, 45, .16), transparent 30%),
        linear-gradient(135deg, #fff 0%, #fff8f0 45%, #f4f8ff 100%);
}

.gallery-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(239, 144, 45, .45), transparent);
}

.gallery-hero-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    gap: 42px;
    align-items: center;
}

.gallery-hero-content .section-tag,
.gallery-cta-box .section-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 9px 16px;
    border: 1px solid rgba(239, 144, 45, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--gallery-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.gallery-hero h1 {
    max-width: 680px;
    margin: 18px 0 18px;
    color: var(--gallery-ink);
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: 0;
}

.gallery-hero h1 span {
    color: var(--gallery-primary);
}

.gallery-hero p {
    max-width: 620px;
    color: var(--gallery-muted);
    font-size: 17px;
    line-height: 1.8;
}

.gallery-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.gallery-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 118px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--gallery-shadow-soft);
    backdrop-filter: blur(18px);
    transition: transform .3s ease, box-shadow .3s ease;
}

.gallery-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--gallery-shadow);
}

.gallery-stat-icon {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 17px;
    background: var(--gallery-primary);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 14px 26px rgba(239, 144, 45, .24);
}

.gallery-stat-youtube {
    background: #ff2f2f;
}

.gallery-stat-internship {
    background: #2563eb;
}

.gallery-stat-passout {
    background: #16a34a;
}

.gallery-stat-participant {
    background: #8b5cf6;
}

.gallery-stat-card strong {
    display: block;
    color: var(--gallery-ink);
    font-size: 34px;
    line-height: 1;
}

.gallery-stat-card span {
    display: block;
    margin-top: 7px;
    color: var(--gallery-muted);
    font-size: 14px;
    font-weight: 600;
}

.gallery-section {
    padding: 25px 25px 8px;
}

.gallery-section-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.gallery-section-copy {
    max-width: 680px;
}

.gallery-section-tag {
    margin-top: 50px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-bottom: 13px;
    color: var(--gallery-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

.gallery-section-header h2 {
    margin: 0;
    color: var(--gallery-ink);
    font-size: clamp(28px, 2vw, 30px);
    line-height: 1.16;
    letter-spacing: 0;
}

.gallery-section-header p {
    max-width: 500px;
    margin: 12px 0 0;
    color: var(--gallery-muted);
    line-height: 1.7;
}

.gallery-view-all,
.gallery-detail-btn,
.gallery-slider-arrow,
.gallery-modal-close,
.gallery-modal-nav,
.gallery-modal-actions button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.gallery-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--gallery-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 15px 26px rgba(23, 32, 51, .17);
    transition: transform .3s ease, background .3s ease;
}

.gallery-view-all:hover {
    transform: translateY(-3px);
    background: var(--gallery-ink);
}

.gallery-slider-shell {
    position: relative;
}

.gallery-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 72px) / 4);
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 4px 30px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--gallery-primary) rgba(239, 144, 45, .12);
    user-select: none;
}

.gallery-slider::-webkit-scrollbar {
    height: 8px;
}

.gallery-slider::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--gallery-primary);
}

.gallery-slider.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.gallery-v2-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 390px;
    overflow: hidden;
    border: 1px solid var(--gallery-line);
    border-radius: 22px;
    background: var(--gallery-v2-card);
    box-shadow: var(--gallery-shadow-soft);
    scroll-snap-align: start;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.gallery-v2-card:hover {
    transform: translateY(-8px);
    border-color: rgba(239, 144, 45, .28);
    box-shadow: var(--gallery-shadow);
}

.gallery-v2-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #edf1f8;
}

.gallery-v2-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.gallery-v2-card:hover .gallery-v2-card-media img {
    transform: scale(1.08);
}

.gallery-v2-card-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 28px);
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: var(--gallery-ink);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.gallery-v2-card-badge i {
    color: var(--gallery-primary);
}

.gallery-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px;
    text-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}

.gallery-play i {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(239, 144, 45, .94);
    box-shadow: 0 18px 38px rgba(239, 144, 45, .36);
}

.gallery-v2-card-body {
    flex: 1;
    padding: 22px 22px 12px;
}

.gallery-v2-card-body h3 {
    display: -webkit-box;
    min-height: 58px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--gallery-ink);
    font-size: 20px;
    line-height: 1.42;
    letter-spacing: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gallery-v2-card-body p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--gallery-muted);
    font-size: 14px;
    line-height: 1.72;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.gallery-v2-card-footer {
    padding: 0 22px 22px;
}

.gallery-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    background: var(--gallery-soft);
    color: var(--gallery-primary-dark);
    font-weight: 800;
    transition: background .3s ease, color .3s ease;
}

.gallery-detail-btn:hover {
    background: var(--gallery-primary);
    color: #fff;
}

.gallery-slider-arrow {
    position: absolute;
    top: 42%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: var(--gallery-primary);
    box-shadow: var(--gallery-shadow-soft);
    transition: transform .3s ease, background .3s ease, color .3s ease;
}

.gallery-slider-arrow:hover {
    transform: translateY(-2px);
    background: var(--gallery-primary);
    color: #fff;
}

.gallery-slider-prev {
    left: -24px;
}

.gallery-slider-next {
    right: -24px;
}

.gallery-empty {
    display: grid;
    place-items: center;
    grid-auto-rows: max-content;
    gap: 10px;
    min-height: 260px;
    padding: 30px;
    border: 1px dashed rgba(239, 144, 45, .38);
    border-radius: 22px;
    background: var(--gallery-soft);
    color: var(--gallery-muted);
    text-align: center;
    scroll-snap-align: start;
}

.gallery-empty i {
    color: var(--gallery-primary);
    font-size: 36px;
}

.gallery-empty h3,
.gallery-empty p {
    margin: 0;
}

.gallery-modal,
.gallery-all-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    background: rgba(7, 12, 22, .72);
    opacity: 0;
    backdrop-filter: blur(0);
    transition: opacity .25s ease, visibility .25s ease, backdrop-filter .25s ease;
    pointer-events: none;
}

.gallery-modal.active,
.gallery-all-modal.active {
    visibility: visible;
    opacity: 1;
    backdrop-filter: blur(18px);
    pointer-events: auto;
}

.gallery-modal.is-closing {
    opacity: 0;
    backdrop-filter: blur(0);
}

.gallery-modal-panel,
.gallery-all-panel {
    position: relative;
    width: min(1080px, 100%);
    max-height: min(88vh, 860px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 36px 90px rgba(0, 0, 0, .28);
    opacity: 0;
    transform: translateY(18px) scale(.95);
    transition: opacity .25s ease, transform .25s ease;
}

.gallery-modal.active .gallery-modal-panel,
.gallery-all-modal.active .gallery-all-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-modal.is-closing .gallery-modal-panel {
    opacity: 0;
    transform: translateY(14px) scale(.95);
}

.gallery-modal-panel {
    width: min(1220px, calc(100% - 32px));
    max-height: 92vh;
    overflow: hidden;
    border-color: rgba(255, 255, 255, .18);
    border-radius: 22px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 34px 90px rgba(0, 0, 0, .38);
    backdrop-filter: blur(18px);
}

.gallery-modal-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
    height: min(92vh, 900px);
}

.gallery-modal-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    max-height: 78vh;
    overflow: hidden;
    margin: 18px 18px 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
    isolation: isolate;
}

.gallery-modal-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(110deg, #101827 8%, #263248 18%, #101827 33%);
    background-size: 220% 100%;
    opacity: 0;
    animation: gallerySkeleton 1.1s linear infinite;
    transition: opacity .2s ease;
    pointer-events: none;
}

.gallery-modal-media.is-loading::before {
    opacity: 1;
}

.gallery-modal-media img,
.gallery-modal-media iframe {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 78vh;
    object-fit: contain;
    border: 0;
    border-radius: inherit;
}

.gallery-modal-media iframe {
    position: relative;
    z-index: 2;
    aspect-ratio: 16 / 9;
    height: auto;
}

.gallery-modal-media img {
    transform: scale(1);
    transition: transform .6s ease, opacity .25s ease;
}

.gallery-modal-media:hover img {
    transform: scale(1.045);
}

.gallery-modal-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 22px;
    row-gap: 8px;
    min-width: 0;
    padding: 14px 24px 18px;
    overflow: hidden;
    color: #fff;
}

.gallery-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    grid-column: 1;
    grid-row: 2;
    padding: 6px 10px;
    border-radius: 999px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(239, 144, 45, .92);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.gallery-modal-info h2 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.2;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-modal-info p {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-modal-divider {
    display: none;
}

.gallery-meta-list {
    display: flex;
    grid-column: 2;
    grid-row: 1 / 3;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
}

.gallery-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 180px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.gallery-meta-item:nth-child(n+3) {
    display: none;
}

.gallery-meta-item i {
    display: inline;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--gallery-primary);
    font-size: 12px;
}

.gallery-meta-item span {
    display: none;
}

.gallery-meta-item strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-modal-actions {
    display: none;
}

.gallery-modal-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: #f5f6f9;
    color: var(--gallery-ink);
    font-weight: 800;
    transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}

.gallery-modal-actions button:hover,
.gallery-modal-actions button:focus-visible {
    transform: translateY(-2px);
    background: var(--gallery-primary);
    color: #fff;
    box-shadow: 0 16px 30px rgba(239, 144, 45, .24);
}

.gallery-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gallery-primary);
    color: #fff;
    box-shadow: 0 16px 30px rgba(239, 144, 45, .3);
}

.gallery-modal .gallery-modal-close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .44);
    background: rgba(23, 32, 51, .46);
    color: #fff;
    backdrop-filter: blur(16px);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.gallery-modal .gallery-modal-close:hover,
.gallery-modal .gallery-modal-close:focus-visible {
    transform: translateY(-2px);
    background: var(--gallery-primary);
    box-shadow: 0 18px 34px rgba(239, 144, 45, .32);
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(23, 32, 51, .42);
    color: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
    transform: translateY(-50%);
    backdrop-filter: blur(16px);
    transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}

.gallery-modal-nav:hover,
.gallery-modal-nav:focus-visible {
    background: var(--gallery-primary);
    color: #fff;
    box-shadow: 0 18px 36px rgba(239, 144, 45, .3);
}

.gallery-modal-prev {
    left: 24px;
}

.gallery-modal-next {
    right: 24px;
}

.gallery-all-panel {
    width: min(1180px, 100%);
    padding: 30px;
}

.gallery-all-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding-right: 58px;
}

.gallery-all-header h2 {
    margin: 0;
    color: var(--gallery-ink);
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: 0;
}

.gallery-all-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.gallery-all-grid .gallery-v2-card {
    min-height: 410px;
}

.gallery-cta {
    padding: 70px 0 25px;
}

.gallery-cta-box {
    position: relative;
    overflow: hidden;
    padding: 58px 48px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(23, 32, 51, .9), rgba(239, 144, 45, .9)),
        url("../../images/internship.jpg") center / cover;
    color: #fff;
    box-shadow: var(--gallery-shadow);
}

.gallery-cta-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(23, 32, 51, .82), rgba(23, 32, 51, .2));
}

.gallery-cta-box>* {
    position: relative;
    z-index: 1;
}

.gallery-cta-box h2 {
    max-width: 680px;
    margin: 18px 0 12px;
    color: #fff;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.12;
    letter-spacing: 0;
}

.gallery-cta-box p {
    max-width: 640px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, .84);
    line-height: 1.8;
}

.gallery-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.gallery-cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
}

.gallery-cta-buttons .btn-primary {
    background: #fff;
    color: var(--gallery-primary-dark);
}

.gallery-cta-buttons .btn-outline {
    border: 1px solid rgba(255, 255, 255, .7);
    color: #fff;
}

.gallery-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}

.gallery-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.gallery-modal-open {
    overflow: hidden;
}

@keyframes gallerySkeleton {
    to {
        background-position-x: -220%;
    }
}

@media (max-width: 1200px) {
    .gallery-slider {
        background: rgb(255, 255, 255, .88);
        grid-auto-columns: calc((100% - 48px) / 3);
    }

    .gallery-slider-prev {
        left: 2px;
    }

    .gallery-slider-next {
        right: 2px;
    }
}

@media (max-width: 992px) {
    .gallery-hero-wrapper {
        grid-template-columns: 1fr;
    }

    .gallery-modal-content {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .gallery-hero-content {

        text-align: center;

    }

    .gallery-hero-content .section-tag,
    .gallery-hero h1,
    .gallery-hero p {

        margin-left: auto;
        margin-right: auto;

    }

    .gallery-stats {

        display: grid;

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

        gap: 16px;

        width: 100%;

        max-width: 560px;

        margin: 10px auto 0;

    }

    .gallery-stat-card {

        min-height: 100px;

        padding: 18px;

    }

    .gallery-slider {
        background: rgb(255, 255, 255, .88);
        grid-auto-columns: calc((100% - 24px) / 2);
    }

    .gallery-modal-media {
        min-height: 0;
        max-height: 72vh;
        margin: 18px 18px 0;
    }

    .gallery-modal-media img,
    .gallery-modal-media iframe {
        max-height: 72vh;
        min-height: 0;
    }

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

@media (max-width: 768px) {
    .gallery-hero {
        padding: 25px 0 50px;
    }

    .gallery-hero-wrapper {
        gap: 30px;
    }

    .gallery-section {
        padding-top: 58px;
    }

    .gallery-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-view-all {
        width: auto;
        align-self: flex-end;
        margin-top: 20px;
        margin-left: auto;
    }

    .gallery-slider {
        background: rgb(255, 255, 255, .88);
        grid-auto-columns: 74%;
        gap: 16px;
        padding-bottom: 20px;
    }

    .gallery-slider-arrow {
        display: none;
    }

    .gallery-modal {
        align-items: stretch;
        padding: 0;
    }

    .gallery-all-modal {
        padding: 12px;
    }

    .gallery-modal-panel {
        width: 100%;
        max-height: none;
        overflow-y: auto;
        border: 0;
        border-radius: 0;
    }

    .gallery-all-panel {
        border-radius: 20px;
    }

    .gallery-modal-content {
        min-height: 100dvh;
        height: auto;
        padding-bottom: 0;
    }

    .gallery-modal-media {
        max-height: 76vh;
        min-height: 0;
        margin: 12px 12px 0;
        border-radius: 16px;
    }

    .gallery-modal-info {
        grid-template-columns: 1fr;
        padding: 13px 16px 18px;
        overflow: visible;
    }

    .gallery-modal-info h2,
    .gallery-modal-badge,
    .gallery-modal-info p,
    .gallery-meta-list {
        grid-column: 1;
    }

    .gallery-meta-list {
        grid-row: 4;
        justify-content: flex-start;
    }

    .gallery-modal-nav {
        top: auto;
        bottom: 150px;
        transform: none;
    }

    .gallery-modal-prev {
        left: 10px;
    }

    .gallery-modal-next {
        right: 10px;
    }

    .gallery-modal .gallery-modal-close {
        top: 14px;
        right: 14px;
    }

    .gallery-modal-actions {
        display: none;
    }

    .gallery-all-panel {
        padding: 24px 18px;
    }

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

    .gallery-cta-box {
        padding: 42px 24px;
    }
}

@media (max-width: 576px) {
    .gallery-stats {

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

        gap: 12px;

    }

    .gallery-stat-card {

        min-height: 92px;

        padding: 14px;

    }

    .gallery-stat-card strong {

        font-size: 26px;

    }

    .gallery-stat-card span {

        font-size: 12px;

    }

    .gallery-stat-icon {

        width: 44px;

        height: 44px;

        font-size: 18px;

    }

    .gallery-slider {
        background: rgb(255, 255, 255, .88);
        grid-auto-columns: 76%;
        gap: 16px;
        padding-bottom: 18px;
    }

    .gallery-v2-card {
        min-height: 320px;
        border-radius: 18px;
    }

    .gallery-v2-card-body {
        padding: 18px 18px 10px;
    }

    .gallery-v2-card-footer {
        padding: 0 18px 18px;
    }

    .gallery-modal-media {
        max-height: 70vh;
        min-height: 0;
    }

    .gallery-modal-media img,
    .gallery-modal-media iframe {
        max-height: 70vh;
        min-height: 0;
    }

    .gallery-all-header {
        padding-right: 50px;
    }

    .gallery-detail-btn {
        min-height: 42px;
        font-size: 14px;
        padding: 0 14px;
    }
}

@media (max-width: 400px) {
    .gallery-hero h1 {
        font-size: 34px;
    }

    .gallery-slider {
        background: rgb(255, 255, 255, .88);
        grid-auto-columns: 84%;
    }

    .gallery-modal-info {
        padding: 13px 14px 16px;
    }
}

@media (max-width: 320px) {
    .gallery-hero h1 {
        font-size: 30px;
    }

    .gallery-v2-card-body h3 {
        font-size: 20px;
        min-height: auto;
        line-height: 1.3;
    }

    .gallery-detail-btn {
        padding: 0 12px;
        font-size: 13px;
    }
}

/* Force gallery stats to show */

.gallery-stats {

    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;

}

.gallery-stat-card {

    display: flex !important;

}

@media (max-width: 576px) {

    .gallery-hero {
        padding: 20px 0 30px;
    }

    .gallery-hero h1 {
        padding: inherit;
        margin-bottom: 10px;
    }

    .gallery-hero-content p {
        display: none;
    }

}

.gallery-view-all-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 0px;
}

@media (max-width: 768px) {
    .gallery-view-all-wrapper {
        justify-content: flex-end;
        /* margin-top: 16px; */
    }
}