/* ==============================
   CBA GALLERY
   Chapter 01 — 滋賀の風景
================================== */

.gallery-page {
    background: #ffffff;
    color: #28343b;
}

/* ---------- Intro ---------- */

.gallery-intro {
    width: min(900px, 88%);
    margin: 0 auto;
    padding: 115px 0 105px;
    text-align: center;
}

.gallery-kicker {
    margin: 0 0 22px;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .24em;
    color: #6c8798;
}

.gallery-intro h1 {
    margin: 0 0 30px;
    font-family: "Noto Serif JP", "Yu Mincho", serif;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: .10em;
}

.gallery-lead {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 2.25;
    letter-spacing: .08em;
    color: #5f6c73;
}

.gallery-lead-en {
    margin: 28px 0 0;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.9;
    letter-spacing: .13em;
    color: #87949b;
}

/* ---------- Chapter ---------- */

.gallery-chapter {
    background: #f7f8f9;
    padding: 105px 0 120px;
}

.chapter-heading {
    width: min(900px, 88%);
    margin: 0 auto 70px;
    text-align: center;
}

.chapter-number {
    margin: 0 0 12px;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .22em;
    color: #7392a5;
}

.chapter-heading h2 {
    margin: 0 0 28px;
    font-family: "Noto Serif JP", "Yu Mincho", serif;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 400;
    letter-spacing: .12em;
}

.chapter-intro {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 2.2;
    letter-spacing: .08em;
    color: #68757c;
}

/* ---------- Essay ---------- */

.photo-essay {
    width: min(1120px, 90%);
    margin: 0 auto;
}

.essay-item {
    margin: 0;
}

.photo-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.photo-button img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .5s ease, opacity .5s ease;
}

.photo-button:hover img {
    transform: scale(1.012);
    opacity: .94;
}

.essay-caption {
    padding: 22px 4px 48px;
}

.essay-date {
    margin: 0 0 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: .14em;
    color: #8a969d;
}

.essay-caption h3 {
    margin: 0 0 10px;
    font-family: "Noto Serif JP", "Yu Mincho", serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: .07em;
    color: #344149;
}

.essay-caption p:last-child {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 2;
    letter-spacing: .05em;
    color: #6d787e;
}

/* Main image */

.essay-main {
    width: min(980px, 100%);
    margin: 0 auto;
}

.essay-main .essay-caption {
    padding-left: 8px;
    padding-right: 8px;
}

/* Three smaller images */

.essay-grid {
    display: grid;
    gap: 42px;
}

.essay-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
}

/* Wide image */

.essay-wide {
    width: min(1000px, 100%);
    margin: 18px auto 0;
}

/* Two images */

.essay-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 56px;
    width: min(1000px, 100%);
    margin: 10px auto 0;
}

/* Final image */

.essay-final {
    width: min(1000px, 100%);
    margin: 20px auto 0;
}

.essay-final-caption {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding-top: 30px;
    padding-bottom: 10px;
}

.essay-final-caption h3 {
    font-size: 20px;
    letter-spacing: .10em;
}

.essay-final-caption p:last-child {
    font-family: "Noto Serif JP", "Yu Mincho", serif;
    font-size: 14px;
    line-height: 2.2;
    letter-spacing: .08em;
}

/* ---------- Next ---------- */

.gallery-next {
    padding: 78px 0 90px;
    text-align: center;
    background: #ffffff;
}

.gallery-next p {
    margin: 0 0 18px;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: .18em;
    color: #89969d;
}

.gallery-next a {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    font-family: "Montserrat", "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: .10em;
    color: #526d7c;
    text-decoration: none;
}

.gallery-next a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 1px;
    background: #9bb6c6;
    transition: width .35s ease;
}

.gallery-next a:hover::after {
    width: 100%;
}

/* ---------- Lightbox ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 70px;
    background: rgba(24, 32, 37, .92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-inner {
    width: min(1100px, 90vw);
    max-height: 92vh;
    text-align: center;
}

.lightbox-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 72vh;
    margin: 0 auto;
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 18px;
    color: #ffffff;
}

.lightbox-date {
    margin: 0 0 5px;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: .14em;
    opacity: .65;
}

.lightbox-caption h2 {
    margin: 0 0 5px;
    font-family: "Noto Serif JP", "Yu Mincho", serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: .08em;
}

.lightbox-caption p:last-child {
    margin: 0 auto;
    max-width: 760px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: .05em;
    opacity: .72;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    opacity: .65;
    transition: opacity .25s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-close {
    top: 18px;
    right: 24px;
    font-size: 34px;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 46px;
    line-height: 1;
    padding: 20px;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {

    .gallery-intro {
        padding: 80px 0 75px;
    }

    .gallery-intro h1 {
        font-size: 25px;
        line-height: 1.8;
        letter-spacing: .08em;
    }

    .gallery-lead {
        font-size: 12px;
        line-height: 2.15;
        letter-spacing: .05em;
    }

    .gallery-lead-en {
        font-size: 10px;
    }

    .gallery-chapter {
        padding: 75px 0 85px;
    }

    .chapter-heading {
        margin-bottom: 50px;
    }

    .chapter-intro {
        font-size: 12px;
        line-height: 2.1;
    }

    .essay-grid-3,
    .essay-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .essay-main,
    .essay-wide,
    .essay-final {
        width: 100%;
    }

    .essay-caption {
        padding: 17px 2px 38px;
    }

    .essay-caption h3 {
        font-size: 16px;
    }

    .essay-caption p:last-child {
        font-size: 11px;
        line-height: 1.9;
    }

    .essay-final-caption {
        padding-top: 24px;
    }

    .essay-final-caption h3 {
        font-size: 17px;
    }

    .essay-final-caption p:last-child {
        font-size: 13px;
    }

    .lightbox {
        padding: 55px 18px 30px;
    }

    .lightbox-inner {
        width: 94vw;
    }

    .lightbox-image {
        max-height: 62vh;
    }

    .lightbox-caption h2 {
        font-size: 15px;
    }

    .lightbox-caption p:last-child {
        font-size: 10px;
        line-height: 1.7;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 34px;
        padding: 14px;
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }
}

/* ==============================
   GALLERY HEADER / FOOTER
   Shared-site alignment
================================== */

.gallery-page .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gallery-page .header-logo {
    flex: 0 0 auto;
}

.gallery-page .header-logo img {
    display: block;
    width: 217px;
    height: auto;
}

.gallery-page .main-navigation {
    margin-left: auto;
}

.gallery-page .site-footer {
    text-align: center;
}

.gallery-page .site-footer-inner {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.gallery-page .footer-brand,
.gallery-page .footer-since,
.gallery-page .footer-copy {
    text-align: center;
}

@media (max-width: 768px) {
    .gallery-page .header-logo img {
        width: 217px;
        max-width: 58vw;
    }
}


/* ==============================
   GALLERY 02 — NATURE
   Four Seasons
================================== */

.gallery-intro-02 {
    padding-bottom: 92px;
}

.gallery-intro-02 h1 {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 300;
    letter-spacing: .22em;
}

.gallery-intro-02 .gallery-lead-en {
    margin-top: 30px;
    letter-spacing: .20em;
}

.gallery-chapter-02 {
    padding-top: 95px;
    padding-bottom: 110px;
}

.season-block {
    width: min(1120px, 90%);
    margin: 0 auto 112px;
}

.season-block:last-child {
    margin-bottom: 0;
}

.season-heading {
    text-align: center;
    margin-bottom: 48px;
}

.season-number {
    margin: 0 0 9px;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .24em;
    color: #7392a5;
}

.season-heading h2 {
    margin: 0;
    font-family: "Noto Serif JP", "Yu Mincho", serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: .14em;
    color: #344149;
}

.season-grid {
    width: 100%;
    margin: 0;
}

.season-grid .essay-caption {
    padding-top: 20px;
    padding-bottom: 0;
}

.season-grid .essay-caption h3 {
    font-size: 16px;
}

.season-grid .essay-caption p:last-child {
    font-size: 12px;
}

.season-block-winter {
    padding-top: 12px;
}

.season-block-winter .season-heading {
    margin-bottom: 52px;
}

.season-block-winter .season-grid .essay-caption {
    padding-bottom: 8px;
}

.gallery-next-02 {
    border-top: 1px solid #eef1f3;
}

@media (max-width: 768px) {

    .gallery-intro-02 {
        padding-bottom: 70px;
    }

    .gallery-intro-02 h1 {
        font-size: 28px;
        letter-spacing: .18em;
    }

    .gallery-intro-02 .gallery-lead-en {
        font-size: 9px;
        letter-spacing: .12em;
    }

    .gallery-chapter-02 {
        padding-top: 70px;
        padding-bottom: 80px;
    }

    .season-block {
        width: 88%;
        margin-bottom: 82px;
    }

    .season-heading {
        margin-bottom: 34px;
    }

    .season-heading h2 {
        font-size: 21px;
    }

    .season-grid .essay-caption {
        padding-top: 15px;
        padding-bottom: 36px;
    }

    .season-grid .essay-caption h3 {
        font-size: 15px;
    }

    .season-grid .essay-caption p:last-child {
        font-size: 11px;
        line-height: 1.9;
    }

    .season-block-winter {
        padding-top: 0;
    }
}
