/* ========================================
   PHOTO EXPLORER — Stretchy paired image rows
   Mouse-driven width scaling with smooth easing
   ======================================== */

.photo-explorer {
    background: #060606;
    padding: 8vh 0 12vh;
    overflow: hidden;
}

/* Header */
.photo-explorer-header {
    text-align: center;
    padding: 0 clamp(1.5rem, 5vw, 4rem) 6vh;
}

.photo-explorer-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.photo-explorer-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.photo-explorer-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Explorer Double Row ---- */
.explorer-double {
    display: flex;
    margin-top: 5vh;
    height: 45vw;
    max-height: 550px;
    cursor: ew-resize;
    padding: 0 clamp(0.5rem, 1vw, 1rem);
    gap: 0.5rem;
}

.explorer-image-container {
    overflow: hidden;
    transition: width 0.05s linear;
}

/* Odd rows: first image 66.66%, second 33.33% */
.explorer-double:nth-child(odd) .explorer-image-container:nth-child(1) {
    width: 66.66%;
}
.explorer-double:nth-child(odd) .explorer-image-container:nth-child(2) {
    width: 33.33%;
}

/* Even rows: reversed — first 33.33%, second 66.66% */
.explorer-double:nth-child(even) .explorer-image-container:nth-child(1) {
    width: 33.33%;
}
.explorer-double:nth-child(even) .explorer-image-container:nth-child(2) {
    width: 66.66%;
}

/* Stretchy wrapper — maintains aspect ratio, image fills */
.explorer-stretchy {
    padding-bottom: 66%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.explorer-stretchy img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.explorer-image-container:hover .explorer-stretchy img {
    transform: scale(1.03);
}

/* Caption body */
.explorer-body {
    padding: 0.75rem 0.5rem;
}

.explorer-body h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 0.25rem 0;
}

.explorer-body p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}

.explorer-body p:nth-of-type(2) {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* ---- Mobile responsive ---- */
@media (max-width: 768px) {
    .explorer-double {
        flex-direction: column;
        height: auto;
        gap: 1rem;
        margin-top: 3vh;
    }

    .explorer-double .explorer-image-container,
    .explorer-double:nth-child(odd) .explorer-image-container:nth-child(1),
    .explorer-double:nth-child(odd) .explorer-image-container:nth-child(2),
    .explorer-double:nth-child(even) .explorer-image-container:nth-child(1),
    .explorer-double:nth-child(even) .explorer-image-container:nth-child(2) {
        width: 100% !important;
    }

    .explorer-stretchy {
        padding-bottom: 56%;
    }

    .photo-explorer-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }
}
