.detail-tabs {
    display: none;
}

.has-presentation-js .detail-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.detail-tabs button {
    min-width: 7rem;
    padding: 0.85rem 1.35rem;
    border: 0.0625rem solid var(--line);
    background: #f7f7f8;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.125rem;
    text-transform: uppercase;
}

@media (max-width: 56.25rem) {
    .detail-tabs button {
        font-size: 0.75rem;
    }
}

.detail-tabs button[aria-selected="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.detail-tabs button:hover:not([aria-selected="true"]) {
    background: #eceff1;
}

.detail-area[hidden] {
    display: none;
}

.gallery-presentation,
.gallery-stage {
    position: relative;
    min-width: 0;
}

.gallery-controls {
    display: none;
}

.has-presentation-js .gallery-controls {
    position: absolute;
    z-index: 3;
    inset: 50% 0.75rem auto;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
}

.gallery-controls button {
    width: 2.9rem;
    height: 2.9rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 94%);
    color: var(--ink);
    box-shadow: 0 0.35rem 1rem rgb(24 51 77 / 17%);
    cursor: pointer;
    pointer-events: auto;
    font-size: 1.25rem;
}

.gallery-controls button:hover {
    background: var(--ink);
    color: var(--paper);
}

.gallery-track {
    width: 100%;
    margin: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-color: var(--ink) #eef0f1;
}

.has-presentation-js .gallery-track {
    overflow-x: hidden;
    touch-action: pan-y;
}

.gallery-item {
    margin: 0;
    scroll-snap-align: start;
    background: #eef0f1;
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    display: block;
    object-fit: cover;
    border-radius: 0.2rem;
}

.gallery-swipe-hint {
    width: 100%;
    margin: 0.65rem auto 0;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 48rem) {
    .has-presentation-js .detail-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .detail-tabs button {
        min-width: max-content;
    }

    .has-presentation-js .gallery-controls {
        inset-inline: 0.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-track,
    .review-track {
        scroll-snap-type: none;
    }
}
