/* Thư viện hình ảnh Đức Thắng - không gian kỷ niệm dành cho học sinh. */
.dt-gallery,
.dt-gallery * {
    box-sizing: border-box;
}

.dt-gallery {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 49px 0 24px;
    background: linear-gradient(145deg, #0755a5 0%, #0b73bd 52%, #08744b 100%);
}

    .dt-gallery::before,
    .dt-gallery::after {
        content: "";
        position: absolute;
        z-index: -1;
        border-radius: 50%;
        pointer-events: none;
    }

    .dt-gallery::before {
        width: 520px;
        height: 520px;
        top: -300px;
        left: -150px;
        background: rgba(255, 219, 99, .2);
    }

    .dt-gallery::after {
        width: 500px;
        height: 500px;
        right: -220px;
        bottom: -300px;
        background: rgba(88, 220, 163, .16);
    }

.dt-gallery-container {
    position: relative;
    z-index: 1;
    max-width: 1240px;
}

.dt-gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

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

.dt-gallery-heading .htk-gallery-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #ffdf63;
    font: 700 14px 'Montserrat-Bold', Arial, sans-serif;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.htk-gallery-heading-copy p {
    color: #ffdf63;
}

.dt-gallery-heading .htk-gallery-kicker i {
    color: #fff1a7;
}

.dt-gallery-heading .htk-section-title {
    margin: 0;
    padding: 0;
    color: #fff;
    font: 800 clamp(28px, 3.2vw, 32px)/1.12 'Montserrat-ExtraBold', Arial, sans-serif;
    letter-spacing: -.8px;
    text-transform: uppercase;
}

    .dt-gallery-heading .htk-section-title::before,
    .dt-gallery-heading .htk-section-title::after {
        display: none;
    }

.dt-gallery-heading-copy > p {
    max-width: 610px;
    margin: 11px 0 0;
    color: rgba(255,255,255,.78);
    font: 500 13px/1.65 'Montserrat-Medium', Arial, sans-serif;
}

.dt-gallery-heading .btn-link-new {
    flex-shrink: 0;
}

    .dt-gallery-heading .btn-link-new a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 42px;
        padding: 9px 17px;
        border: 2px solid #ffda59;
        border-radius: 999px;
        background: #ffda59;
        color: #144779;
        font: 700 15px 'Montserrat-Bold', Arial, sans-serif;
        text-decoration: none;
        transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
    }

        .dt-gallery-heading .btn-link-new a:hover {
            color: #fff;
            background: transparent;
            transform: translateY(-3px);
            box-shadow: 0 10px 22px rgba(0, 27, 78, .2);
        }

.dt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0,1fr));
    grid-template-rows: repeat(2, 145px);
    gap: 14px;
}

.dt-gallery-item {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.82);
    border-radius: 22px;
    background: #dbeafa;
    box-shadow: 0 15px 28px rgba(0, 29, 82, .23);
    transform: translateZ(0);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

    .dt-gallery-item:nth-child(1) {
        grid-column: 1 / 6;
        grid-row: 1 / 4;
    }

    .dt-gallery-item:nth-child(2) {
        grid-column: 6 / 9;
        grid-row: 1 / 3;
    }

    .dt-gallery-item:nth-child(3) {
        grid-column: 9 / 13;
        grid-row: 1 / 2;
    }

    .dt-gallery-item:nth-child(4) {
        grid-column: 9 / 13;
        grid-row: 2 / 4;
    }

    .dt-gallery-item:nth-child(5) {
        grid-column: 6 / 9;
        grid-row: 3 / 4;
    }

    .dt-gallery-item:nth-child(6) {
        grid-column: 1 / 4;
        grid-row: 4 / 6;
    }

    .dt-gallery-item:nth-child(7) {
        grid-column: 4 / 9;
        grid-row: 4 / 6;
    }

    .dt-gallery-item:nth-child(8) {
        grid-column: 9 / 13;
        grid-row: 4 / 6;
    }

    .dt-gallery-item img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transform: scale(1.01);
        transition: transform .6s ease, filter .45s ease;
    }

    .dt-gallery-item::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(180deg, transparent 42%, rgba(4,31,68,.72) 100%);
        opacity: .7;
        transition: opacity .35s ease;
    }

    .dt-gallery-item::after {
        content: "";
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 2;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ffda59;
        box-shadow: 0 0 0 5px rgba(255,218,89,.18);
    }

    .dt-gallery-item:nth-child(3n + 2)::after {
        background: #54db9a;
        box-shadow: 0 0 0 5px rgba(84,219,154,.18);
    }

    .dt-gallery-item:nth-child(3n)::after {
        background: #ff91bd;
        box-shadow: 0 0 0 5px rgba(255,145,189,.18);
    }

    .dt-gallery-item .htk-gallery-overlay {
        position: absolute;
        inset: 0;
        z-index: 3;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        padding: 15px;
        color: #fff;
        background: transparent;
        opacity: 1;
        pointer-events: none;
    }

    .dt-gallery-item .htk-gallery-number {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 31px;
        height: 31px;
        border: 1px solid rgba(255,255,255,.32);
        border-radius: 11px;
        background: rgba(5,42,86,.55);
        color: #fff;
        font: 800 12px 'Montserrat-Bold', Arial, sans-serif;
        backdrop-filter: blur(7px);
    }

    .dt-gallery-item .htk-gallery-view {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 11px;
        border-radius: 999px;
        background: rgba(255,255,255,.96);
        color: #0754a4;
        box-shadow: 0 8px 18px rgba(0,23,61,.16);
        opacity: 0;
        transform: translateY(8px);
        transition: opacity .3s ease, transform .3s ease;
    }

        .dt-gallery-item .htk-gallery-view i {
            width: auto !important;
            height: auto !important;
            margin: 0 !important;
            border: 0 !important;
            background: transparent !important;
            color: #0754a4 !important;
            font-size: 12px !important;
        }

        .dt-gallery-item .htk-gallery-view small {
            font: 700 10px 'Montserrat-Bold', Arial, sans-serif;
            text-transform: uppercase;
        }

    .dt-gallery-item:hover {
        z-index: 4;
        border-color: #ffda59;
        box-shadow: 0 22px 42px rgba(0,19,52,.35);
        transform: translateY(-6px) rotate(-.3deg);
    }

        .dt-gallery-item:hover img {
            filter: saturate(1.1) brightness(1.04);
            transform: scale(1.08);
        }

        .dt-gallery-item:hover::before {
            opacity: .92;
        }

        .dt-gallery-item:hover .htk-gallery-view {
            opacity: 1;
            transform: translateY(0);
        }

@media (max-width: 1023px) {
    .dt-gallery {
        padding: 62px 0 72px;
    }

    .dt-gallery-grid {
        grid-template-columns: repeat(6,minmax(0,1fr));
        grid-template-rows: repeat(4,130px);
        gap: 12px;
    }

    .dt-gallery-item:nth-child(1) {
        grid-column: 1 / 4;
        grid-row: 1 / 3;
    }

    .dt-gallery-item:nth-child(2) {
        grid-column: 4 / 7;
        grid-row: 1 / 2;
    }

    .dt-gallery-item:nth-child(3) {
        grid-column: 4 / 7;
        grid-row: 2 / 3;
    }

    .dt-gallery-item:nth-child(4) {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
    }

    .dt-gallery-item:nth-child(5) {
        grid-column: 3 / 5;
        grid-row: 3 / 4;
    }

    .dt-gallery-item:nth-child(6) {
        grid-column: 5 / 7;
        grid-row: 3 / 4;
    }

    .dt-gallery-item:nth-child(7) {
        grid-column: 1 / 4;
        grid-row: 4 / 5;
    }

    .dt-gallery-item:nth-child(8) {
        grid-column: 4 / 7;
        grid-row: 4 / 5;
    }
}

@media (max-width: 599px) {
    .dt-gallery {
        padding: 30px 0 17px;
    }

    .dt-gallery-heading {
        align-items: flex-end;
        gap: 14px;
        margin-bottom: 22px;
    }

        .dt-gallery-heading .htk-gallery-kicker {
            margin-bottom: 11px;
            padding: 5px 9px;
            font-size: 11px;
            letter-spacing: .7px;
        }

        .dt-gallery-heading .htk-section-title {
            font-size: 20px;
            line-height: 1.5;
        }

    .htk-gallery-heading-copy p {
        font-size: 15px;
        text-align: justify;
    }

    .dt-gallery-heading-copy > p {
        display: none;
    }

    .dt-gallery-heading .btn-link-new a {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 13px;
        white-space: nowrap;
    }

    .dt-gallery-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        grid-template-rows: none;
        grid-auto-rows: 130px;
        gap: 10px;
    }

    .dt-gallery-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
        border-width: 2px;
        border-radius: 15px;
    }

    .dt-gallery-item:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: span 2;
    }

    .dt-gallery-item:nth-child(4) {
        grid-column: 1 / -1;
    }

    .dt-gallery-item .htk-gallery-overlay {
        padding: 10px;
    }

    .dt-gallery-item .htk-gallery-number {
        width: 27px;
        height: 27px;
        border-radius: 9px;
        font-size: 9px;
    }

    .dt-gallery-item .htk-gallery-view {
        padding: 7px;
        opacity: 1;
        transform: none;
    }

        .dt-gallery-item .htk-gallery-view small {
            display: none;
        }

    .dt-gallery-item::after {
        top: 9px;
        right: 9px;
        width: 8px;
        height: 8px;
        box-shadow: 0 0 0 4px rgba(255,218,89,.18);
    }
}

@media (max-width: 390px) {
    .dt-gallery-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

        .dt-gallery-heading .btn-link-new {
            align-self: unset;
        }

    .dt-gallery-grid {
        grid-auto-rows: 105px;
    }
}

/* Gallery reel: dải ảnh cuộn ngang, khác hoàn toàn grid/mosaic và showcase. */
.dt-gallery-reel {
    display: flex;
    grid-template-columns: none;
    grid-template-rows: none;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 8px 22px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #ffda59 rgba(255,255,255,.18);
}

    .dt-gallery-reel::-webkit-scrollbar {
        height: 7px;
    }

    .dt-gallery-reel::-webkit-scrollbar-track {
        border-radius: 99px;
        background: rgba(255,255,255,.18);
    }

    .dt-gallery-reel::-webkit-scrollbar-thumb {
        border-radius: 99px;
        background: #ffda59;
    }

    .dt-gallery-reel .dt-gallery-item:nth-child(n) {
        flex: 0 0 278px;
        width: 278px;
        height: 342px;
        grid-column: auto;
        grid-row: auto;
        scroll-snap-align: start;
        border: 0;
        border-radius: 20px;
        background: #fff;
        box-shadow: 0 16px 28px rgba(0,29,82,.23);
        transform: rotate(-1deg);
    }

    .dt-gallery-reel .dt-gallery-item:nth-child(2n) {
        transform: rotate(1.1deg);
    }

    .dt-gallery-reel .dt-gallery-item:nth-child(3n) {
        transform: rotate(-.35deg);
    }

    .dt-gallery-reel .dt-gallery-item:hover {
        transform: translateY(-8px) rotate(0);
        border-color: transparent;
    }

    .dt-gallery-reel .dt-gallery-item:first-child {
        flex-basis: 390px;
        width: 390px;
        transform: rotate(-.45deg);
    }

    .dt-gallery-reel .dt-gallery-item img {
        position: absolute;
        top: 9px;
        right: 9px;
        left: 9px;
        width: calc(100% - 18px);
        height: calc(100% - 78px);
        border-radius: 14px;
        object-fit: cover;
        transform: none;
        transition: transform .55s ease, filter .45s ease;
    }

    .dt-gallery-reel .dt-gallery-item:hover img {
        transform: scale(1.035);
        filter: saturate(1.08);
    }

    .dt-gallery-reel .dt-gallery-item::before {
        top: 9px;
        right: 9px;
        bottom: 78px;
        left: 9px;
        border-radius: 14px;
        background: linear-gradient(0deg, rgba(5,42,86,.58), transparent 48%);
        opacity: .55;
    }

    .dt-gallery-reel .dt-gallery-item::after {
        top: 20px;
        right: 20px;
        width: 10px;
        height: 10px;
    }

    .dt-gallery-reel .dt-gallery-caption {
        position: absolute;
        right: 18px;
        bottom: 13px;
        left: 18px;
        z-index: 3;
        display: block;
        overflow: hidden;
        text-align: left;
    }

        .dt-gallery-reel .dt-gallery-caption strong,
        .dt-gallery-reel .dt-gallery-caption small {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .dt-gallery-reel .dt-gallery-caption strong {
            color: #173c60;
            font: 800 14px/1.35 'Montserrat-Bold', Arial, sans-serif;
        }

        .dt-gallery-reel .dt-gallery-caption small {
            margin-top: 3px;
            color: #8b98a5;
            font: 600 9px 'Montserrat-SemiBold', Arial, sans-serif;
            letter-spacing: .3px;
            text-transform: uppercase;
        }

    .dt-gallery-reel .htk-gallery-overlay {
        align-items: flex-start;
        padding: 19px;
    }

    .dt-gallery-reel .htk-gallery-number {
        width: 30px;
        height: 30px;
        border: 0;
        border-radius: 10px;
        background: #ffda59;
        color: #173c60;
        backdrop-filter: none;
    }

    .dt-gallery-reel .htk-gallery-view {
        margin-left: auto;
        opacity: 0;
        transform: translateY(-5px);
    }

    .dt-gallery-reel .dt-gallery-item:hover .htk-gallery-view {
        opacity: 1;
        transform: translateY(0);
    }

@media (max-width: 599px) {
    .dt-gallery-reel {
        gap: 12px;
        padding: 6px 5px 19px;
        scroll-padding-left: 5px;
    }

        .dt-gallery-reel .dt-gallery-item:nth-child(n),
        .dt-gallery-reel .dt-gallery-item:first-child {
            flex-basis: 74vw;
            width: 74vw;
            height: 292px;
            transform: rotate(-.5deg);
            border-radius: 17px;
        }

        .dt-gallery-reel .dt-gallery-item:nth-child(2n) {
            transform: rotate(.8deg);
        }

        .dt-gallery-reel .dt-gallery-item img {
            border-radius: 12px;
        }

        .dt-gallery-reel .dt-gallery-caption {
            right: 15px;
            bottom: 12px;
            left: 15px;
        }

            .dt-gallery-reel .dt-gallery-caption strong {
                font-size: 12px;
            }

            .dt-gallery-reel .dt-gallery-caption small {
                font-size: 8px;
            }

        .dt-gallery-reel .htk-gallery-overlay {
            padding: 15px;
        }

        .dt-gallery-reel .htk-gallery-view {
            opacity: 1;
            transform: none;
            padding: 7px;
        }

            .dt-gallery-reel .htk-gallery-view small {
                display: none;
            }
}

@media (prefers-reduced-motion: reduce) {
    .dt-gallery-reel .dt-gallery-item,
    .dt-gallery-reel .dt-gallery-item img,
    .dt-gallery-reel .htk-gallery-view {
        transition: none !important;
    }
}

/* Swiper presentation: slow continuous slides with direct Fancybox viewing. */
.dt-gallery-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 8px 8px 53px;
}

.dt-gallery-slides {
    align-items: stretch;
}

.dt-gallery-slider .dt-gallery-item {
    position: relative;
    display: block;
    flex-shrink: 0;
    height: 326px;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 22px;
    background: #dbeafa;
    box-shadow: 0 15px 28px rgba(0,29,82,.24);
    transform: none !important;
    transition: box-shadow .35s ease, border-color .35s ease;
}

    .dt-gallery-slider .dt-gallery-item:hover {
        z-index: 2;
        border-color: #ffda59;
        box-shadow: 0 22px 38px rgba(0,19,52,.34);
    }

    .dt-gallery-slider .dt-gallery-item img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transform: scale(1.01);
        transition: transform .65s ease, filter .45s ease;
    }

    .dt-gallery-slider .dt-gallery-item:hover img {
        transform: scale(1.065);
        filter: saturate(1.08) brightness(1.04);
    }

    .dt-gallery-slider .dt-gallery-item::before {
        background: linear-gradient(180deg, transparent 38%, rgba(3,30,74,.78) 100%);
        opacity: .72;
    }

    .dt-gallery-slider .dt-gallery-item::after {
        top: 16px;
        right: 16px;
        width: 10px;
        height: 10px;
    }

.dt-gallery-slider .dt-gallery-caption {
    position: absolute;
    right: 17px;
    bottom: 17px;
    left: 17px;
    z-index: 3;
    display: block;
    overflow: hidden;
    color: #fff;
    text-align: left;
    pointer-events: none;
}

    .dt-gallery-slider .dt-gallery-caption strong,
    .dt-gallery-slider .dt-gallery-caption small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dt-gallery-slider .dt-gallery-caption strong {
        font: 800 17px/1.35 'Montserrat-Bold', Arial, sans-serif;
        text-shadow: 0 2px 8px rgba(0,0,0,.25);
    }

    .dt-gallery-slider .dt-gallery-caption small {
        margin-top: 3px;
        color: #ffdf76;
        font: 600 12px 'Montserrat-SemiBold', Arial, sans-serif;
        letter-spacing: .35px;
        text-transform: uppercase;
    }

.dt-gallery-slider .htk-gallery-overlay {
    align-items: flex-start;
    padding: 15px;
}

.dt-gallery-slider .htk-gallery-number {
    width: 31px;
    height: 31px;
    border: 0;
    border-radius: 10px;
    background: #ffda59;
    color: #173c60;
    backdrop-filter: none;
}

.dt-gallery-slider .htk-gallery-view {
    margin-left: auto;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity .3s ease, transform .3s ease;
}

.dt-gallery-slider .dt-gallery-item:hover .htk-gallery-view {
    opacity: 1;
    transform: translateY(0);
}

.dt-gallery-slider .dt-gallery-arrow {
    position: absolute;
    top: calc(50% - 27px);
    z-index: 5;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255,255,255,.85);
    border-radius: 50%;
    background: rgba(7,55,111,.82);
    color: #ffda59;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,20,60,.2);
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

    .dt-gallery-slider .dt-gallery-arrow:hover {
        background: #ffda59;
        color: #173c60;
        transform: scale(1.08);
    }

.dt-gallery-slider .dt-gallery-prev {
    left: 5px;
}

.dt-gallery-slider .dt-gallery-next {
    right: 5px;
}

.dt-gallery-slider .dt-gallery-arrow.swiper-button-disabled {
    opacity: .35;
    pointer-events: none;
}

.dt-gallery-slider .dt-gallery-pagination {
    bottom: 13px !important;
}

.dt-gallery-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    opacity: .55;
    background: #fff;
    transition: width .25s ease, border-radius .25s ease, opacity .25s ease;
}

.dt-gallery-slider .swiper-pagination-bullet-active {
    width: 25px;
    border-radius: 99px;
    opacity: 1;
    background: #ffda59;
}

@media (max-width: 599px) {
    .dt-gallery-slider {
        padding: 5px 3px 48px;
    }

        .dt-gallery-slider .dt-gallery-item {
            height: 200px;
            border-width: 3px;
            border-radius: 17px;
        }

        .dt-gallery-slider .dt-gallery-caption {
            right: 13px;
            bottom: 13px;
            left: 13px;
        }

            .dt-gallery-slider .dt-gallery-caption strong {
                font-size: 12px;
            }

            .dt-gallery-slider .dt-gallery-caption small {
                font-size: 8px;
            }

        .dt-gallery-slider .htk-gallery-overlay {
            padding: 11px;
        }

        .dt-gallery-slider .htk-gallery-number {
            width: 27px;
            height: 27px;
            border-radius: 8px;
            font-size: 9px;
        }

        .dt-gallery-slider .htk-gallery-view {
            opacity: 1;
            transform: none;
            padding: 7px;
        }

            .dt-gallery-slider .htk-gallery-view small {
                display: none;
            }

        .dt-gallery-slider .dt-gallery-arrow {
            width: 34px;
            height: 34px;
            font-size: 11px;
        }

        .dt-gallery-slider .dt-gallery-prev {
            left: 6px;
        }

        .dt-gallery-slider .dt-gallery-next {
            right: 6px;
        }
}

/* Auto reel: vẫn cho phép vuốt/kéo thủ công nhưng ẩn scrollbar để giao diện gọn hơn. */
.dt-gallery-reel.dt-gallery-auto {
    overflow-x: auto;
    scroll-behavior: auto;
    scrollbar-width: none;
}

    .dt-gallery-reel.dt-gallery-auto::-webkit-scrollbar {
        display: none;
    }

    .dt-gallery-reel.dt-gallery-auto .dt-gallery-item {
        cursor: grab;
    }

    .dt-gallery-reel.dt-gallery-auto.is-dragging .dt-gallery-item {
        cursor: grabbing;
    }

@media (prefers-reduced-motion: reduce) {
    .dt-gallery * {
        transition: none !important;
    }
}

/* Album showcase: ảnh bìa + các thẻ kỷ niệm, thay cho bố cục mosaic cũ. */
.dt-gallery-showcase {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 360px 185px 185px;
    gap: 16px;
}

    .dt-gallery-showcase .dt-gallery-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
        height: auto;
        border-radius: 20px;
    }

    .dt-gallery-showcase .dt-gallery-item:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: 1;
        border-radius: 28px;
    }

    .dt-gallery-showcase .dt-gallery-item:nth-child(2),
    .dt-gallery-showcase .dt-gallery-item:nth-child(3),
    .dt-gallery-showcase .dt-gallery-item:nth-child(4),
    .dt-gallery-showcase .dt-gallery-item:nth-child(5) {
        grid-row: 2;
    }

    .dt-gallery-showcase .dt-gallery-item:nth-child(6),
    .dt-gallery-showcase .dt-gallery-item:nth-child(7),
    .dt-gallery-showcase .dt-gallery-item:nth-child(8) {
        grid-row: 3;
    }

    .dt-gallery-showcase .dt-gallery-item:nth-child(7) {
        grid-column: span 2;
    }

    .dt-gallery-showcase .dt-gallery-item:first-child img {
        object-position: center 42%;
    }

    .dt-gallery-showcase .dt-gallery-item:first-child::before {
        background: linear-gradient(90deg, rgba(3,30,74,.78), rgba(3,30,74,.08) 66%), linear-gradient(0deg, rgba(3,30,74,.48), transparent 55%);
    }

    .dt-gallery-showcase .dt-gallery-item:first-child::after {
        top: 24px;
        right: 25px;
        width: 14px;
        height: 14px;
        background: #ffdc66;
        box-shadow: 0 0 0 7px rgba(255,220,102,.2);
    }

    .dt-gallery-showcase .dt-gallery-item:first-child .htk-gallery-overlay {
        align-items: flex-end;
        padding: 28px;
    }

    .dt-gallery-showcase .dt-gallery-item:first-child .htk-gallery-number {
        width: auto;
        height: auto;
        padding: 7px 10px;
        border-radius: 999px;
        background: #ffdc66;
        color: #173c60;
        font-size: 11px;
    }

        .dt-gallery-showcase .dt-gallery-item:first-child .htk-gallery-number::before {
            content: "ẢNH BÌA KỶ NIỆM · ";
        }

    .dt-gallery-showcase .dt-gallery-item:not(:first-child) {
        border-color: rgba(255,255,255,.95);
        box-shadow: 0 12px 22px rgba(0,29,82,.2);
    }

    .dt-gallery-showcase .dt-gallery-item:nth-child(2n) {
        transform: rotate(-.7deg);
    }

    .dt-gallery-showcase .dt-gallery-item:nth-child(3n) {
        transform: rotate(.65deg);
    }

        .dt-gallery-showcase .dt-gallery-item:nth-child(2n):hover,
        .dt-gallery-showcase .dt-gallery-item:nth-child(3n):hover {
            transform: translateY(-7px) rotate(0);
        }

    .dt-gallery-showcase .dt-gallery-item:not(:first-child) .htk-gallery-overlay {
        padding: 12px;
    }

@media (max-width: 1023px) {
    .dt-gallery-showcase {
        grid-template-columns: repeat(3, minmax(0,1fr));
        grid-template-rows: 300px 145px 145px;
        gap: 13px;
    }

        .dt-gallery-showcase .dt-gallery-item:nth-child(1) {
            grid-column: 1 / -1;
            grid-row: 1;
        }

        .dt-gallery-showcase .dt-gallery-item:nth-child(2),
        .dt-gallery-showcase .dt-gallery-item:nth-child(3),
        .dt-gallery-showcase .dt-gallery-item:nth-child(4) {
            grid-row: 2;
        }

        .dt-gallery-showcase .dt-gallery-item:nth-child(5),
        .dt-gallery-showcase .dt-gallery-item:nth-child(6),
        .dt-gallery-showcase .dt-gallery-item:nth-child(7) {
            grid-row: 3;
        }

        .dt-gallery-showcase .dt-gallery-item:nth-child(7) {
            grid-column: auto;
        }

        .dt-gallery-showcase .dt-gallery-item:nth-child(8) {
            display: none;
        }
}

@media (max-width: 599px) {
    .dt-gallery-showcase {
        grid-template-columns: repeat(2, minmax(0,1fr));
        grid-template-rows: 235px repeat(4, 125px);
        gap: 11px;
    }

        .dt-gallery-showcase .dt-gallery-item:nth-child(n) {
            grid-column: auto;
            grid-row: auto;
            height: auto;
            border-radius: 15px;
            transform: none;
        }

        .dt-gallery-showcase .dt-gallery-item:nth-child(1) {
            grid-column: 1 / -1;
            grid-row: 1;
            border-radius: 20px;
        }

        .dt-gallery-showcase .dt-gallery-item:nth-child(7) {
            grid-column: auto;
        }

        .dt-gallery-showcase .dt-gallery-item:nth-child(8) {
            display: block;
        }

        .dt-gallery-showcase .dt-gallery-item:first-child .htk-gallery-overlay {
            padding: 16px;
        }

        .dt-gallery-showcase .dt-gallery-item:first-child .htk-gallery-number {
            font-size: 9px;
        }

            .dt-gallery-showcase .dt-gallery-item:first-child .htk-gallery-number::before {
                content: "ẢNH BÌA · ";
            }

        .dt-gallery-showcase .dt-gallery-item:first-child::after {
            top: 13px;
            right: 14px;
            width: 9px;
            height: 9px;
            box-shadow: 0 0 0 5px rgba(255,220,102,.2);
        }

        .dt-gallery-showcase .dt-gallery-item:not(:first-child) .htk-gallery-overlay {
            padding: 8px;
        }
}