/* ═══ EDITIONS PAGE ═══ */

/* ═══ HERO COVER ═══ */
.editions-hero {
    position: relative;
    height: 70vh;
    min-height: 480px;
    padding-top: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.editions-hero-bg {
    position: absolute;
    inset: 0;
    background: url(../assets/img/DSC_7250.JPG) center 40% / cover no-repeat;
}

.editions-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(120, 53, 0, 0.8) 100%);
}

.editions-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 700px;
}

.editions-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.editions-hero-content p {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    text-align: justify;
    text-align-last: center;
}

/* ═══ SECTIONS ═══ */
.edt-section { background: var(--color-white); }
.edt-section.edt-alt { background: var(--color-gray-100); }

.edt-description {
    font-size: 0.92rem;
    color: var(--color-gray-600);
    line-height: 1.8;
    max-width: 780px;
    margin-bottom: 2.5rem;
    text-align: justify;
}

/* ═══════════════════════════════════════════
   PANORAMIC GALLERY — stacked overlap
   Center image in front, sides tucked behind
   ═══════════════════════════════════════════ */
.pano-gallery {
    position: relative;
    width: 100%;
    padding: 0.5rem 0 2rem;
}

.pano-stage {
    position: relative;
    width: 100%;
    height: clamp(320px, 48vw, 500px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
}

.pano-stage:active { cursor: grabbing; }

/* ═══ SLIDES ═══ */
.pano-slide {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    will-change: transform, opacity;
}

.pano-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Center — large, in front */
.pano-slide.pos-center {
    width: clamp(380px, 55%, 720px);
    height: 100%;
    z-index: 5;
    transform: translate(-50%, -50%);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.35);
    opacity: 1;
    filter: brightness(1);
}

/* Left — tucked behind, only 1/4 visible on the left edge */
.pano-slide.pos-left {
    width: clamp(340px, 48%, 620px);
    height: 88%;
    z-index: 3;
    transform: translate(-115%, -50%);
    opacity: 0.6;
    filter: brightness(0.55);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Right — tucked behind, only 1/4 visible on the right edge */
.pano-slide.pos-right {
    width: clamp(340px, 48%, 620px);
    height: 88%;
    z-index: 3;
    transform: translate(15%, -50%);
    opacity: 0.6;
    filter: brightness(0.55);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Far left — deeper behind */
.pano-slide.pos-far-left {
    width: clamp(300px, 42%, 540px);
    height: 76%;
    z-index: 1;
    transform: translate(-110%, -50%);
    opacity: 0;
    filter: brightness(0.35);
    pointer-events: none;
}

/* Far right — deeper behind */
.pano-slide.pos-far-right {
    width: clamp(300px, 42%, 540px);
    height: 76%;
    z-index: 1;
    transform: translate(10%, -50%);
    opacity: 0;
    filter: brightness(0.35);
    pointer-events: none;
}

/* Hidden */
.pano-slide.pos-hidden {
    width: 300px;
    height: 60%;
    z-index: 0;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    pointer-events: none;
}

/* ═══ CAPTION — center slide only ═══ */
.pano-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.pano-slide.pos-center .pano-caption { opacity: 1; }

.pano-caption span {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pano-caption em {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 500;
    font-style: italic;
    color: #fff;
}

/* ═══ NAV ARROWS ═══ */
.pano-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid var(--color-gray-300);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: var(--color-gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.25s ease;
    z-index: 20;
}

.pano-nav:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.pano-prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.pano-next { right: clamp(0.5rem, 2vw, 1.5rem); }

/* ═══ RESPONSIVE ═══ */

/* Tablet */
@media (max-width: 1024px) {
    .pano-stage { height: 340px; }
    .pano-slide.pos-center { width: 60%; }
    .pano-slide.pos-left { width: 52%; height: 85%; transform: translate(-112%, -50%); }
    .pano-slide.pos-right { width: 52%; height: 85%; transform: translate(12%, -50%); }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
    .pano-stage { height: 260px; }
    .pano-gallery { padding: 0.5rem 0 1.5rem; }

    .pano-slide.pos-center { width: 72%; }
    .pano-slide.pos-left {
        width: 55%;
        height: 80%;
        transform: translate(-108%, -50%);
    }
    .pano-slide.pos-right {
        width: 55%;
        height: 80%;
        transform: translate(8%, -50%);
    }
    .pano-slide.pos-far-left,
    .pano-slide.pos-far-right { opacity: 0; }

    .pano-nav { width: 34px; height: 34px; font-size: 0.7rem; }
    .pano-prev { left: 0.4rem; }
    .pano-next { right: 0.4rem; }

    .pano-caption { padding: 2rem 1rem 1rem; }
    .pano-caption em { font-size: 0.95rem; }
}

/* Phone */
@media (max-width: 480px) {
    .pano-stage { height: 220px; }

    .pano-slide.pos-center { width: 82%; }
    .pano-slide.pos-left {
        width: 60%;
        height: 75%;
        transform: translate(-108%, -50%);
        opacity: 0.4;
    }
    .pano-slide.pos-right {
        width: 60%;
        height: 75%;
        transform: translate(8%, -50%);
        opacity: 0.4;
    }

    .pano-nav { width: 30px; height: 30px; font-size: 0.65rem; }
    .pano-caption em { font-size: 0.85rem; }
    .pano-caption span { font-size: 0.55rem; }
}

/* Very small phone */
@media (max-width: 360px) {
    .pano-stage { height: 190px; }
    .pano-slide.pos-center { width: 88%; }
    .pano-slide.pos-left,
    .pano-slide.pos-right { opacity: 0.3; width: 55%; }
}
