﻿/* =========================================================
   EXPERIENCE PAGE
   ========================================================= */

.experience-page {
    width: 100%;
    max-width: 100%;
    color: var(--ui-color-black);
    font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
    overflow-x: hidden;
}


/* =========================================================
   GLOBAL CONTAINER
   ========================================================= */

.experience-container {
    width: min( calc(100% - 40px), 1150px );
    margin-inline: auto;
    z-index:10;
    position:relative;
}


/* =========================================================
   COMMON TYPOGRAPHY
   ========================================================= */

.experience-heading {
    margin: 0;
    color: #9a6a2f;
    font-family: Sabon, Georgia, serif;
    font-size: clamp( 24px, 2vw, 32px );
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.experience-copy {
    margin-top: 10px;
    color: var(--ui-color-black);
    font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.3;
}

    .experience-copy p {
        margin: 0 0 18px;
    }

    .experience-copy strong {
        display: block;
        font-weight: 700;
    }

    .experience-copy span {
        display: block;
    }


/* =========================================================
   SECTION 1
   BANNER + OVERLAY + INTRO
   ========================================================= */

.experience-section-intro {
    position: relative;
    width: 100%;
    background: var(--ui-color-white);
}


/* ---------------------------------------------------------
   Full-width background banner
   --------------------------------------------------------- */

.experience-banner {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

    .experience-banner img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/* ---------------------------------------------------------
   Center overlay image
   Half of image overlaps / extends below banner
   --------------------------------------------------------- */

.experience-banner-overlay {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 40px), 1150px);
    margin-inline: auto;
    margin-top: -115px;
    margin-bottom: 40px;
}

    .experience-banner-overlay img {
        display: block;
        width: 100%;
        height: auto;
    }


/* ---------------------------------------------------------
   Intro content
   --------------------------------------------------------- */

.experience-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp( 60px, 10vw, 150px );
    padding-bottom: 70px;
}


/* ---------------------------------------------------------
   Experience product blocks
   --------------------------------------------------------- */

.experience-products {
    display: grid;
    grid-template-rows: repeat(2);
    gap: 25px;
    margin-top: 20px;
}

.experience-product {
    display: grid;
    grid-template-rows: repeat(1);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

    .experience-product img {
        display: block;
        width: 100%;
        max-width: 90px;
        height: auto;
    }

.experience-product-label {
    color: var(--ui-color-black);
    font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.15;
    font-weight:700;
}


/* =========================================================
   SECTION 2 + SECTION 3
   FEATURE LAYOUT
   ========================================================= */

.experience-section-washi,
.experience-section-chiso {
    position: relative;
    width: 100%;
    margin-top: 0;
    background: var(--ui-color-white);
}


/* ---------------------------------------------------------
   Feature
   --------------------------------------------------------- */

.experience-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    align-items: center;
    gap: clamp( 20px, 8vw, 200px );
    min-height: 390px;
    padding: 50px 0;
}

.experience-feature-content {
    max-width: 530px;
}

.experience-feature-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

    .experience-feature-image img {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: 420px;
        object-fit: contain;
        top: 30px;
        position: relative;
    }


/* =========================================================
   GALLERY
   ========================================================= */

.experience-gallery {
    width: 100%;
    padding: 28px 0 55px;
    background: #dfe2df;
    top: -110px;
    position: relative;
    z-index: 0;
}

.experience-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin-top: 25px;
}

    .experience-gallery-grid img {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 0.85;
        object-fit: cover;
    }


/* =========================================================
   SECTION 3
   CHISO
   ========================================================= */

.experience-feature-chiso {
    padding-bottom: 35px;
}


/* ---------------------------------------------------------
   Wide image
   --------------------------------------------------------- */

.experience-wide-image {
    width: 100%;
    padding-bottom: 65px;
    aspect-ratio: 13.9 / 9;
    overflow: hidden;
}

    .experience-wide-image img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .experience-wide-image iframe {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover; 
    }

/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 480px) and (max-width: 800px) {

    .experience-container {
        /*width: min( calc(100% - 50px), 900px );*/
    }


    /* Section 1 */

    .experience-banner {
        height: 240px;
    }

    .experience-banner-overlay {
        /*width: 75%;
        max-width: 760px;*/
        margin-top: -100px;
        margin-bottom: 35px;
    }


    .experience-intro-grid {
        gap: 45px;
    }


    .experience-products {
        grid-template-columns: 1fr;
    }

    .experience-product {
        
    }

        .experience-product img {
            max-width: 75px;
        }


    /* Feature sections */

    .experience-feature {
        gap: 40px;
    }
    .experience-feature-image img { 
        top: 70px;
        position: relative;
    }

    .experience-gallery {
        width: 100%;
        padding: 28px 0 55px;
        background: #dfe2df;
        top: -60px;
        position: relative;
        z-index: 0;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 40em) {

    .experience-container {
        width: calc(100% - 32px);
    }


    /* -----------------------------------------------------
       Section 1 background
       ----------------------------------------------------- */

    .experience-banner {
        height: 180px;
    }


    /* -----------------------------------------------------
       Section 1 overlay
       ----------------------------------------------------- */

    .experience-banner-overlay {
        width: calc(100% - 32px);
        max-width: none;
        margin-top: -70px;
        margin-bottom: 30px;
    }


    /* -----------------------------------------------------
       Intro content
       ----------------------------------------------------- */

    .experience-intro-grid {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-bottom: 45px;
        text-align:center;
    }

    .experience-column:nth-child(1) {
        order: 2;
    }

    .experience-column:nth-child(2) {
        order: 1;
    }
    /* -----------------------------------------------------
       Typography
       ----------------------------------------------------- */

    .experience-heading {
        font-size: 25px;
        text-align:center;
    }

    .experience-copy {
        margin-top: 16px;
        font-size: 12px;
        line-height: 1.4;
        text-align:center;
    }


    /* -----------------------------------------------------
       Product blocks
       ----------------------------------------------------- */

    .experience-products {
        grid-template-columns: 1fr;
        gap: 20px;
    }



    .experience-product { 
        gap: 10px;
    }

        .experience-product img {
            max-width: 85px;
        }


    /* -----------------------------------------------------
       Section 2 + 3
       ----------------------------------------------------- */

    .experience-feature,
    .experience-feature-chiso {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 25px;
        padding: 40px 0;
    }

    .experience-feature-content {
        max-width: none;
        order: 2;
    }


    .experience-feature-image {
        order: 1;
    }

        .experience-feature-image img {
            width: auto;
            max-width: 80%;
            max-height: 330px;
            top: 0px;
        }


    /* -----------------------------------------------------
       Gallery
       ----------------------------------------------------- */

    .experience-gallery {
        padding: 30px 0 40px;
        top:0px;
    }

    .experience-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        margin-top: 20px;
    }


    /* -----------------------------------------------------
       Wide image
       ----------------------------------------------------- */

    .experience-wide-image {
        padding-top: 40px;
        padding-bottom: 40px;
		aspect-ratio:3.9/3;
    }

        .experience-wide-image img {
            width: 100%;
            height: auto;
        }

        .experience-wide-image iframe {
            width: 100%;
            height: 100%;
        }


}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .experience-container {
        width: calc(100% - 24px);
    }

    .experience-banner-overlay {
        width: calc(100% - 24px);
        margin-top: -55px;
    }

    .experience-heading {
        font-size: 22px;
    }

    .experience-copy {
        font-size: 11px;
    }

    .experience-product {
                gap: 10px;
    }

        .experience-product img {
            max-width: 75px;
        }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .experience-page *,
    .experience-page *::before,
    .experience-page *::after {
        scroll-behavior: auto;
        transition: none !important;
        animation: none !important;
    }
}




.experience-gallery {
    display: flex;
    gap: 8px;
}

.experience-gallery-item {
    width: 20%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

    .experience-gallery-item:hover {
        opacity: 0.8;
    }


/* LIGHTBOX */

.experience-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

    .experience-lightbox.active {
        display: flex;
    }

.experience-lightbox-content {
    width: min(85vw, 1000px);
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .experience-lightbox-content img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }


/* CLOSE */

.experience-lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    border: 0;
    background: transparent;
    color: white;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}


/* PREVIOUS / NEXT */

.experience-lightbox-prev,
.experience-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 70px;
    border: 0;
    background: rgba(0, 0, 0, 0.25);
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.experience-lightbox-prev {
    left: 20px;
}

.experience-lightbox-next {
    right: 20px;
}

    .experience-lightbox-prev:hover,
    .experience-lightbox-next:hover {
        background: rgba(0, 0, 0, 0.5);
    }


/* MOBILE */

@media (max-width: 40em) {

    .experience-gallery {
        gap: 5px;
    }

    .experience-lightbox-content {
        width: 90vw;
        height: 75vh;
    }

    .experience-lightbox-prev,
    .experience-lightbox-next {
        width: 40px;
        height: 55px;
        font-size: 28px;
    }

    .experience-lightbox-prev {
        left: 5px;
    }

    .experience-lightbox-next {
        right: 5px;
    }

    .experience-lightbox-close {
        top: 15px;
        right: 18px;
        font-size: 36px;
    }
}