﻿/* =========================================
   PAGINA
========================================= */

.past-page {
    width: 100%;
    min-height: 100vh;
    background: #DBD0A3;
    padding: 130px 0 80px 0;
    box-sizing: border-box;
}

/* =========================================
   TITOLO
========================================= */

.past-title {
    margin: 0 0 70px 0;
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 60px;
    font-weight: 300;
    letter-spacing: 3px;
    color: #102548;
}

/* =========================================
   ANNI
========================================= */

.past-year {
    width: 92%;
    max-width: 1450px;
    margin: 0 auto 70px auto;
}

    .past-year h2 {
        margin: 0 0 30px 0;
        font-family: "Cormorant Garamond", serif;
        font-size: 46px;
        font-weight: 300;
        color: #2e6f40;
        border-bottom: 2px solid #2e6f40;
        padding-bottom: 10px;
    }

/* =========================================
   GRIGLIA
========================================= */

.past-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

/* =========================================
   CARD
========================================= */

.past-card {
    width: 315px;
    background: #102548;
    border: 1px solid #a08d3a;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0,0,0,.20);
    transition: .25s;
}

/* =========================================
   FOTO
========================================= */

.past-image {
    width: calc(100% - 30px);
    height: 185px;
    margin: 15px;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 6px;
    border: 1px solid #b59b46;
    background: #102548;
}

/* =========================================
   TITOLO CARD
========================================= */

.past-name {
    background: white;
    color: #102548;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 12px;
    line-height: 1.25;
}

/* =========================================
   HOVER
========================================= */

.past-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 38px rgba(0,0,0,.30);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width:1200px) {

    .past-grid {
        justify-content: center;
    }
}



/* =========================================
   ALBUM PAST TOURS
========================================= */

.past-album {
    width: 100%;
    min-height: 100vh;
    background: #c2b16a;
    padding-top: 120px;
    text-align: center;
    box-sizing: border-box;
}

.past-album-title {
    margin-bottom: 35px;
    font-family: "Cormorant Garamond", serif;
    font-size: 58px;
    font-weight: 300;
    color: #102548;
}

.photo-container {
    position: relative;
    width: 90%;
    max-width: 1400px;
    margin: auto;
}

.album-photo {
    display: block;
    max-width: 90%;
    max-height: 78vh;
    width: auto;
    height: auto;
    margin: auto;
    border: 12px solid #ffffff;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    transition: opacity .8s;
    user-select: none;
    position: relative;
    z-index: 1;
}

.watermark {
    position: absolute;
    right: 450px;
    bottom: 25px;
    width: 100px; /* prova 160, poi eventualmente 140 */

    opacity: .90;
    z-index: 100;
    pointer-events: none;
    user-select: none;
    position: absolute;
    z-index: 10;
}

.album-layout {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 30px 60px 25px 40px;
    box-sizing: border-box;
}

.album-photo-area {
    flex: 1;
}

.album-description {
    width: 400px;
    min-width: 400px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: linear-gradient( 180deg, #fbf6df 0%, #f6efcf 100%);
    border: 1px solid #d2b66b;
    border-radius: 22px;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 19px;
    line-height: 1.75;
    text-align: justify;
    color: #3A2412;
}

.album-fregio {
    width: 80%;
    height: 2px;
    margin: 20px auto;
    background: #c8a74d;
    border-radius: 2px;
}

.album-testo {
    margin: 25px 30px;
}
#fullscreenOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

#fullscreenImage {
    max-width: 95vw;
    max-height: 95vh;
    box-shadow: 0 0 40px rgba(0,0,0,.60);
}

.album-photo {
    cursor: zoom-in;
}

/* ==========================================================
   PHOTO VIEWER
   ========================================================== */

.viewer {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,.97);
    z-index: 99999;
}

.viewer-image {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,.70);
}

.viewer-prev,
.viewer-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 70px;
    font-family: Arial;
    cursor: pointer;
    user-select: none;
    padding: 18px;
    opacity: .75;
    transition: .25s;
}

    .viewer-prev:hover,
    .viewer-next:hover {
        opacity: 1;
    }

.viewer-prev {
    left: 25px;
}

.viewer-next {
    right: 25px;
}

.viewer-close {
    position: absolute;
    right: 25px;
    top: 18px;
    color: white;
    font-size: 48px;
    font-family: Arial;
    cursor: pointer;
    opacity: .75;
    transition: .25s;
}

    .viewer-close:hover {
        opacity: 1;
    }

.album-photo {
    cursor: zoom-in;
}