    .td-gallery-page {
        --td-ink: #2b1114;
        --td-maroon: #7a1426;
        --td-gold: #f2b705;
        display: block;
        color: var(--td-ink);
        line-height: 1.6;
    }

    .td-gallery-page *,
    .td-gallery-page *::before,
    .td-gallery-page *::after,
    .td-lightbox *,
    .td-lightbox *::before,
    .td-lightbox *::after {
        box-sizing: border-box;
    }

    .td-gallery-hero {
        position: relative;
        display: flex;
        min-height: clamp(260px, 34vw, 380px);
        align-items: center;
        overflow: hidden;
        padding: clamp(46px, 7vw, 84px) 20px;
        color: #fff;
        background:
            linear-gradient(90deg, rgba(28, 8, 12, .78) 0%, rgba(28, 8, 12, .52) 48%, rgba(28, 8, 12, .18) 100%),
            url("https://delhikannadaschool.com/rooms/1687936403.jpg") center 42% / cover no-repeat;
    }

    .td-gallery-hero-content {
        width: min(1160px, 100%);
        margin: 0 auto;
    }

    .td-gallery-crumb {
        margin: 0 0 12px;
        color: rgba(255, 255, 255, .86);
        font-size: 14px;
    }

    .td-gallery-crumb a {
        color: #fff;
        text-decoration: none;
    }

    .td-gallery-crumb a:hover {
        text-decoration: underline;
    }

    .td-gallery-hero h1 {
        margin: 0;
        color: #fff;
        font-size: clamp(2.2rem, 5vw, 3.5rem);
        font-weight: 800;
        line-height: 1.15;
        text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
    }

    .td-gallery-hero .td-gallery-kicker {
        margin-bottom: 8px;
        color: #ffd84d;
    }

    .td-gallery-hero-subtitle {
        max-width: 580px;
        margin: 18px 0 0;
        color: rgba(255, 255, 255, .9);
        font-size: clamp(15px, 2vw, 18px);
        line-height: 1.65;
    }

    .td-gallery-hero h1::after {
        display: block;
        width: 64px;
        height: 4px;
        margin-top: 16px;
        border-radius: 4px;
        background: var(--td-gold);
        content: "";
    }

    .td-gallery-wrap {
        max-width: 1200px;
        margin: 0 auto;
        padding: clamp(40px, 6vw, 72px) clamp(14px, 3vw, 32px);
    }

    .td-gallery-header {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        margin-bottom: 26px;
    }

    .td-gallery-kicker {
        display: block;
        margin-bottom: 7px;
        color: #8a5f00;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 1.6px;
        text-transform: uppercase;
    }

    .td-gallery-header .td-gallery-kicker {
        color: #8a5f00;
    }

    .td-gallery-heading {
        margin: 0;
        color: #0a2a4f;
        font-size: clamp(1.55rem, 3.5vw, 2.2rem);
        font-weight: 750;
        line-height: 1.2;
    }

    .td-gallery-intro {
        max-width: 680px;
        margin: 10px 0 0;
        color: #58606b;
        font-size: 15px;
    }

    .td-gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }

    .td-gallery-item {
        position: relative;
        display: block;
        overflow: hidden;
        aspect-ratio: 4 / 3;
        border: 1px solid rgba(43, 17, 20, .06);
        border-radius: 12px;
        background: #eadfd9;
        box-shadow: 0 5px 16px rgba(43, 17, 20, .08);
        transition: box-shadow .35s ease, transform .35s ease;
    }

    .td-gallery-item::before,
    .td-gallery-item::after {
        position: absolute;
        z-index: 1;
        pointer-events: none;
        opacity: 0;
        transition: opacity .3s ease, transform .3s ease;
    }

    .td-gallery-item::before {
        right: 12px;
        bottom: 12px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--td-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1114' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5M10.5 7v7M7 10.5h7'/%3E%3C/svg%3E") center / 19px no-repeat;
        content: "";
        transform: scale(.8);
    }

    .td-gallery-item::after {
        inset: 0;
        background: linear-gradient(180deg, transparent 48%, rgba(35, 10, 14, .48) 100%);
        content: "";
    }

    .td-gallery-item img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .55s cubic-bezier(.22, .8, .24, 1);
    }

    .td-gallery-item:hover img,
    .td-gallery-item:focus-visible img {
        transform: scale(1.07);
    }

    .td-gallery-item:hover,
    .td-gallery-item:focus-visible {
        box-shadow: 0 14px 30px rgba(43, 17, 20, .18);
        transform: translateY(-3px);
    }

    .td-gallery-item:hover::before,
    .td-gallery-item:hover::after,
    .td-gallery-item:focus-visible::before,
    .td-gallery-item:focus-visible::after {
        opacity: 1;
        transform: none;
    }

    .td-gallery-item:focus-visible,
    .td-lightbox button:focus-visible {
        outline: 3px solid var(--td-gold);
        outline-offset: 3px;
    }

    .td-lightbox[hidden] {
        display: none;
    }

    .td-lightbox-progress {
        position: relative;
        z-index: 1;
        flex: 0 0 4px;
        overflow: hidden;
        background: rgba(255, 255, 255, .22);
    }

    .td-lightbox-progress-bar {
        display: block;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, #ffd84d, var(--td-gold));
        box-shadow: 0 0 8px rgba(242, 183, 5, .8);
        transform: scaleX(0);
        transform-origin: left center;
    }

    .td-lightbox {
        --td-gold: #f2b705;
        position: fixed;
        z-index: 9999;
        inset: 0;
        display: flex;
        flex-direction: column;
        color: #fff;
        background: rgba(14, 16, 20, .88);
        backdrop-filter: blur(2px);
    }

    .td-lightbox-top {
        display: flex;
        flex: 0 0 58px;
        align-items: center;
        justify-content: space-between;
        padding: 6px 16px;
        border-top: 1px solid rgba(255, 255, 255, .12);
        background: rgba(10, 10, 12, .45);
    }

    .td-lightbox-count {
        font-size: .95rem;
        font-variant-numeric: tabular-nums;
        letter-spacing: .06em;
    }

    .td-lightbox-tools {
        display: flex;
        align-items: center;
        gap: 3px;
    }

    .td-lightbox button {
        display: grid;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        place-items: center;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #fff;
        cursor: pointer;
        transition: background-color .25s ease, color .25s ease, transform .25s ease;
    }

    .td-lightbox button:hover,
    .td-lightbox button:active,
    .td-lightbox button.is-on {
        background: rgba(242, 183, 5, .16);
        color: var(--td-gold);
    }

    .td-lightbox button:active {
        transform: scale(.94);
    }

    .td-icon-pause,
    .td-lightbox.is-playing .td-icon-play {
        display: none;
    }

    .td-lightbox.is-playing .td-icon-pause {
        display: block;
    }

    .td-lightbox button svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
    }

    .td-lightbox-stage {
        position: relative;
        display: flex;
        flex: 1;
        min-height: 0;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 14px 76px;
        touch-action: pan-y;
    }

    .td-lightbox-image {
        max-width: 100%;
        max-height: 100%;
        border-radius: 2px;
        object-fit: contain;
        box-shadow: 0 18px 64px rgba(0, 0, 0, .46);
        user-select: none;
        -webkit-user-drag: none;
        transition: transform .25s ease;
    }

    .td-lightbox-image.is-zoomed {
        transform: scale(1.8);
        cursor: zoom-out;
    }

    .td-lightbox-image:not(.is-zoomed) {
        cursor: zoom-in;
    }

    .td-lightbox-nav {
        position: absolute;
        z-index: 5;
        top: 50%;
        width: 48px !important;
        height: 56px !important;
        border-radius: 8px !important;
        background: rgba(0, 0, 0, .28) !important;
        transform: translateY(-50%);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .td-lightbox-nav svg {
        width: 28px !important;
        height: 28px !important;
    }

    .td-lightbox-prev {
        left: 12px;
    }

    .td-lightbox-next {
        right: 12px;
    }

    .td-lightbox-thumbs {
        display: flex;
        flex: 0 0 auto;
        gap: 7px;
        overflow-x: auto;
        padding: 10px 8px max(10px, env(safe-area-inset-bottom));
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, .35) transparent;
        background: rgba(8, 8, 10, .58);
    }

    .td-lightbox-thumbs button {
        width: 108px;
        height: 70px;
        flex: 0 0 108px;
        padding: 0;
        overflow: hidden;
        border: 3px solid transparent;
        border-radius: 5px;
        opacity: .72;
    }

    .td-lightbox-thumbs button:hover {
        opacity: 1;
    }

    .td-lightbox-thumbs button.is-active {
        border-color: var(--td-gold);
        opacity: 1;
    }

    .td-lightbox-thumbs img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .td-lightbox.no-thumbs .td-lightbox-thumbs {
        display: none;
    }

    @media (max-width: 960px) {
        .td-gallery-wrap {
            padding-top: 52px;
            padding-bottom: 58px;
        }

        .td-gallery-grid {
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        }
    }

    @media (max-width: 640px) {
        .td-gallery-hero {
            min-height: 250px;
            padding: 48px 20px;
        }

        .td-gallery-header {
            align-items: flex-start;
            flex-direction: column;
            gap: 14px;
            margin-bottom: 20px;
        }

        .td-gallery-wrap {
            padding: 42px 16px 48px;
        }

        .td-gallery-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .td-gallery-item {
            border-radius: 9px;
        }

        .td-gallery-item::before {
            right: 8px;
            bottom: 8px;
            width: 32px;
            height: 32px;
            background-size: 16px;
        }

        .td-gallery-intro {
            font-size: 14px;
        }

        .td-lightbox-top {
            flex-basis: 54px;
            padding-right: 8px;
            padding-left: 12px;
        }

        .td-lightbox button {
            width: 38px;
            height: 38px;
            flex-basis: 38px;
        }

        .td-lightbox-stage {
            padding: 8px 4px 58px;
        }

        .td-lightbox-nav {
            top: auto;
            bottom: 8px;
            transform: none;
        }

        .td-lightbox-prev {
            left: 8px;
        }

        .td-lightbox-next {
            right: 8px;
        }

        .td-lightbox-thumbs {
            gap: 5px;
            padding: 7px 5px max(7px, env(safe-area-inset-bottom));
        }

        .td-lightbox-thumbs button {
            width: 72px;
            height: 52px;
            flex-basis: 72px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .td-gallery-page *,
        .td-lightbox * {
            scroll-behavior: auto !important;
            transition: none !important;
        }
    }
