/* ==========================================================================
   LUX&GO — Our Collection / Gallery
   ========================================================================== */

.collection-gallery {
    padding-block: clamp(56px, 5vw, 88px);
    background-color: var(--color-off-white);
}

.collection-gallery__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.5fr);
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
}

.collection-gallery__copy {
    max-width: 430px;
}

.collection-gallery__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 1.65rem + 1.5vw, 3.25rem);
    font-weight: var(--fw-medium);
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--color-text);
}

.collection-gallery__description {
    max-width: 38ch;
    margin-top: clamp(16px, 1.5vw, 24px);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-text-muted);
}

.collection-gallery__viewer {
    min-width: 0;
}

.collection-gallery__stage,
.collection-gallery__empty {
    display: grid;
    position: relative;
    place-items: center;
    min-height: clamp(280px, 38vw, 560px);
    overflow: hidden;
    border-radius: var(--radius-sm);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(69, 91, 112, 0.45), transparent 60%),
        var(--color-obsidian);
}

.collection-gallery__audio-toggle {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    color: var(--color-white);
    background-color: rgba(9, 10, 12, 0.78);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.collection-gallery__audio-toggle:hover {
    background-color: rgba(9, 10, 12, 0.96);
}

.collection-gallery__audio-toggle:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 3px;
}

.collection-gallery__audio-toggle[hidden] {
    display: none;
}

.collection-gallery__slide {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
}

.collection-gallery__slide[hidden] {
    display: none;
}

.collection-gallery__media {
    display: block;
    width: 100%;
    height: 100%;
    max-height: clamp(280px, 38vw, 560px);
    object-fit: contain;
}

.collection-gallery__video-error {
    grid-area: 1 / 1;
    align-self: end;
    padding: 12px 16px;
    color: var(--color-white);
    background-color: rgba(9, 10, 12, 0.82);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.collection-gallery__empty {
    padding: 24px;
    color: var(--color-muted-gray);
    font-family: var(--font-body);
    text-align: center;
}

.collection-gallery__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.collection-gallery__count {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

.collection-gallery__arrows {
    display: flex;
    gap: 8px;
}

.collection-gallery__arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(17, 24, 30, 0.2);
    border-radius: 50%;
    color: var(--color-text);
    background-color: transparent;
    font-size: 1.25rem;
    transition:
        color var(--transition-base),
        border-color var(--transition-base),
        background-color var(--transition-base);
}

.collection-gallery__arrow:hover {
    border-color: var(--color-obsidian);
    color: var(--color-white);
    background-color: var(--color-obsidian);
}

.collection-gallery__arrow:focus-visible {
    outline: 2px solid var(--color-lux-blue);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .collection-gallery__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(24px, 4vw, 36px);
    }

    .collection-gallery__copy {
        max-width: 600px;
    }

    .collection-gallery__stage,
    .collection-gallery__empty {
        min-height: clamp(260px, 58vw, 480px);
    }

    .collection-gallery__media {
        max-height: clamp(260px, 58vw, 480px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .collection-gallery__arrow {
        transition: none;
    }
}
