/* All rules stay inside the gallery. Existing campaign styles and controls are untouched. */
.dt-photo-gallery, .dt-photo-gallery * { box-sizing: border-box; }
.dt-photo-gallery {
    --gallery-ink: var(--dt-navy, #00162a);
    --gallery-line: var(--dt-line, #dbdee6);
    color: var(--gallery-ink);
    margin-block: 2.5rem;
    max-width: 60rem;
    min-width: 0;
}
.dt-photo-gallery h2 {
    color: inherit;
    font-family: Archivo, Inter, system-ui, sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    line-height: 1.12;
    margin: 0 0 .65rem;
}
.dt-photo-gallery > p { margin: 0 0 1.25rem; }
.dt-photo-gallery__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    min-width: 0;
}
.dt-photo-gallery__slide {
    background: var(--dt-white, #fff);
    border: 1px solid var(--gallery-line);
    border-radius: .75rem;
    margin: 0;
    min-width: 0;
    overflow: hidden;
}
.dt-photo-gallery__slide img {
    aspect-ratio: 3 / 2;
    background: var(--dt-alt, #eef0f4);
    display: block;
    height: auto;
    object-fit: contain;
    width: 100%;
}
.dt-photo-gallery__slide figcaption {
    font-size: .9375rem;
    line-height: 1.5;
    padding: .85rem 1rem;
}
.dt-photo-gallery__controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: space-between;
    margin-top: 1rem;
}
.dt-photo-gallery__controls[hidden] { display: none; }
.dt-photo-gallery__buttons { display: flex; gap: .5rem; }
.dt-photo-gallery button {
    background: var(--gallery-ink);
    border: 2px solid var(--gallery-ink);
    border-radius: .4rem;
    color: #fff;
    cursor: pointer;
    font: 600 .9375rem/1.25 Inter, system-ui, sans-serif;
    min-height: 44px;
    min-width: 44px;
    padding: .65rem 1rem;
}
.dt-photo-gallery button:hover:not([aria-disabled="true"]) { background: #102e48; }
.dt-photo-gallery button[aria-disabled="true"] {
    background: #eef0f4;
    border-color: #dbdee6;
    color: #5a6b7a;
    cursor: default;
}
.dt-photo-gallery :focus-visible {
    outline: 3px solid #00162a;
    outline-offset: 4px;
}
.dt-photo-gallery__help {
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
.dt-photo-gallery[data-gallery-ready="true"] .dt-photo-gallery__track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scroll-behavior: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.dt-photo-gallery[data-gallery-ready="true"] .dt-photo-gallery__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
@media (max-width: 600px) {
    .dt-photo-gallery__track { grid-template-columns: minmax(0, 1fr); }
    .dt-photo-gallery__slide figcaption { padding: .75rem; }
    .dt-photo-gallery button { padding-inline: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .dt-photo-gallery *, .dt-photo-gallery *::before, .dt-photo-gallery *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
