/* =========================================================
   COUNTRY GALLERIES
   Ardy Veltkamp / CarpCasa
   ========================================================= */


/* COUNTRY HERO */

.country-hero{
    position:relative;
    height:620px;
    min-height:520px;
    overflow:hidden;
    background:#111;
}

.country-hero-image{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center 45%;
    transform:scale(1.01);
}

.country-hero-shade{
    position:absolute;
    inset:0;

    background:
        linear-gradient(
            90deg,
            rgba(6,8,6,.92) 0%,
            rgba(6,8,6,.62) 38%,
            rgba(6,8,6,.12) 75%
        ),
        linear-gradient(
            0deg,
            rgba(6,8,6,.65),
            transparent 55%
        );
}

.country-hero-content{
    position:relative;
    z-index:2;
    padding-top:225px;
}

.country-hero .hero-kicker{
    margin-bottom:20px;
}

.country-hero h1{
    margin:0;

    color:var(--orange);

    font-size:clamp(85px,12vw,180px);
    font-weight:900;
    line-height:.78;
    letter-spacing:-8px;
}

.country-hero p{
    max-width:510px;
    margin:35px 0 0;

    color:var(--sand);

    font-size:15px;
    line-height:1.7;
}



/* INTRO */

.country-intro{
    padding:100px 0;

    background:#eee9df;
    color:#191a17;
}

.country-intro-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:100px;
    align-items:start;
}

.country-intro h2{
    margin:0;
    color:#191a17;
}

.country-intro-copy{
    max-width:520px;
    padding-top:5px;
}

.country-intro-copy p{
    color:#4d4d45;
    font-size:17px;
}

.country-intro-copy p:last-child{
    margin-bottom:0;
}



/* ALBUMS */

.country-albums{
    padding:110px 0 130px;
    background:#191b17;
}

.album-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:32px 22px;
}

.album-card{
    display:block;
    background:var(--panel);
    transition:
        transform .3s ease,
        background .3s ease;
}

.album-card:hover{
    transform:translateY(-5px);
    background:#252821;
}


/* IMAGE */

.album-image{
    position:relative;
    aspect-ratio:4 / 3;
    overflow:hidden;
    background:#111;
}

.album-image img{
    width:100%;
    height:100%;
    object-fit:cover;

    transition:transform .7s ease;
}

.album-card:hover .album-image img{
    transform:scale(1.045);
}

.album-image-shade{
    position:absolute;
    inset:0;

    background:
        linear-gradient(
            0deg,
            rgba(0,0,0,.45),
            transparent 55%
        );
}

.album-arrow{
    position:absolute;
    right:20px;
    bottom:18px;

    display:flex;
    width:45px;
    height:45px;

    align-items:center;
    justify-content:center;

    background:var(--orange);
    color:white;

    font-size:21px;

    transition:.25s;
}

.album-card:hover .album-arrow{
    background:var(--orange-light);
    transform:translateX(4px);
}


/* ALBUM TEXT */

.album-info{
    padding:27px 28px 30px;
}

.album-eyebrow{
    display:block;

    margin-bottom:8px;

    color:var(--orange-light);

    font-size:9px;
    font-weight:bold;
    letter-spacing:2px;
}

.album-info h3{
    margin:0 0 25px;

    color:var(--text);

    font-size:26px;
    line-height:1.1;
}

.album-count{
    display:flex;
    align-items:center;
    gap:10px;

    color:var(--sand);

    font-size:10px;
    font-weight:bold;
    letter-spacing:1.5px;
}

.album-count span{
    color:var(--orange);
    font-size:17px;
}



/* BOTTOM SECTION */

.gallery-back{
    padding:110px 0;

    background:#0d0f0d;

    text-align:center;
}

.gallery-back > .container{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.gallery-back > .container > span{
    margin-bottom:18px;

    color:var(--orange-light);

    font-size:10px;
    font-weight:bold;
    letter-spacing:3px;
}

.gallery-back h2{
    margin-bottom:35px;
}



/* TABLET */

@media (max-width:950px){

    .country-hero{
        height:560px;
    }

    .country-intro-grid{
        gap:60px;
    }

    .album-grid{
        grid-template-columns:repeat(2,1fr);
    }

}



/* MOBILE */

@media (max-width:700px){

    .country-hero{
        height:540px;
        min-height:0;
    }

    .country-hero-image{
        background-position:60% center;
    }

    .country-hero-content{
        padding-top:205px;
    }

    .country-hero h1{
        font-size:clamp(72px,25vw,110px);
        letter-spacing:-5px;
    }

    .country-hero p{
        max-width:320px;
        margin-top:28px;
        font-size:14px;
    }


    .country-intro{
        padding:70px 0;
    }

    .country-intro-grid{
        grid-template-columns:1fr;
        gap:30px;
    }

    .country-intro-copy{
        padding-top:0;
    }


    .country-albums{
        padding:70px 0 85px;
    }

    .album-grid{
        grid-template-columns:1fr;
        gap:22px;
    }

    .album-info{
        padding:24px;
    }

    .album-info h3{
        font-size:25px;
    }


    .gallery-back{
        padding:80px 0;
    }
}
	/* =========================================================
   PHOTO GALLERY
   ========================================================= */


/* HEADER */

.gallery-site-header{
    position:absolute;
}

.photo-gallery-header{
    padding:175px 0 70px;
    background:#0d0f0d;
}

.gallery-return{
    display:inline-flex;
    align-items:center;
    gap:10px;

    margin-bottom:55px;

    color:var(--sand);

    font-size:10px;
    font-weight:bold;
    letter-spacing:1.5px;
    text-transform:uppercase;

    transition:.25s;
}

.gallery-return span{
    color:var(--orange);
    font-size:18px;
}

.gallery-return:hover{
    color:white;
}


.photo-gallery-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:50px;
}

.photo-gallery-heading .eyebrow{
    margin-bottom:18px;
}

.photo-gallery-heading h1{
    max-width:850px;
    margin:0;

    font-size:clamp(58px,8vw,115px);
    font-weight:900;
    line-height:.85;
    letter-spacing:-5px;
}

.photo-gallery-total{
    flex:0 0 auto;

    padding-bottom:8px;

    text-align:right;
}

.photo-gallery-total strong{
    display:block;

    color:var(--orange);

    font-size:55px;
    font-weight:900;
    line-height:.9;
}

.photo-gallery-total span{
    display:block;

    margin-top:10px;

    color:var(--sand);

    font-size:9px;
    font-weight:bold;
    letter-spacing:3px;
}

.gallery-instruction{
    margin:40px 0 0;

    color:var(--muted);

    font-size:13px;
}


/* PHOTO GRID */

.photo-gallery{
    padding:20px 0 120px;
    background:#191b17;
}

.photo-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:12px;
}

.photo-item{
    position:relative;
    display:block;
    width:100%;
    aspect-ratio:4 / 3;
    margin:0;
    padding:0;
    overflow:hidden;
    border:0;
    background:#111;
    cursor:pointer;
}

.photo-item img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    transition:transform .35s ease;
}

.photo-item:hover img{
    transform:scale(1.03);
}

.photo-hover{
    position:absolute;
    inset:0;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(0,0,0,0);

    opacity:0;

    transition:.3s;
}

.photo-hover span{
    display:flex;

    width:64px;
    height:64px;

    align-items:center;
    justify-content:center;

    border:1px solid rgba(255,255,255,.65);

    color:white;

    font-size:9px;
    font-weight:bold;
    letter-spacing:2px;
}

.photo-item:hover img{
    transform:scale(1.025);
}

.photo-item:hover .photo-hover{
    background:rgba(0,0,0,.28);
    opacity:1;
}


.gallery-empty{
    padding:100px 20px;

    color:var(--muted);

    text-align:center;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.lightbox{
    position:fixed;
    inset:0;
    z-index:1000;

    display:flex;

    align-items:center;
    justify-content:center;

    padding:35px 105px;

    background:rgba(5,6,5,.97);

    opacity:0;
    visibility:hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.lightbox.open{
    opacity:1;
    visibility:visible;
}

body.lightbox-open{
    overflow:hidden;
}


/* IMAGE AREA */

.lightbox-stage{
    position:relative;

    display:flex;

    width:100%;
    height:100%;

    align-items:center;
    justify-content:center;
}

.lightbox-image{
    width:auto;
    max-width:100%;

    height:auto;
    max-height:calc(100vh - 150px);

    object-fit:contain;

    box-shadow:0 20px 80px rgba(0,0,0,.45);
}


/* CLOSE */

.lightbox-close{
    position:absolute;
    z-index:5;

    top:25px;
    right:30px;

    width:48px;
    height:48px;

    padding:0;

    border:0;
    background:transparent;

    color:white;

    font-size:38px;
    font-weight:200;
    line-height:1;

    cursor:pointer;

    opacity:.75;

    transition:.2s;
}

.lightbox-close:hover{
    opacity:1;
    color:var(--orange-light);
}


/* ARROWS */

.lightbox-prev,
.lightbox-next{
    position:absolute;
    z-index:5;

    top:50%;

    width:58px;
    height:70px;

    padding:0;

    border:1px solid rgba(255,255,255,.22);

    background:rgba(0,0,0,.15);
    color:white;

    font-size:42px;
    line-height:1;

    cursor:pointer;

    transform:translateY(-50%);

    transition:.25s;
}

.lightbox-prev{
    left:25px;
}

.lightbox-next{
    right:25px;
}

.lightbox-prev:hover,
.lightbox-next:hover{
    border-color:var(--orange);
    background:var(--orange);
}


/* CAPTION + COUNTER */

.lightbox-info{
    position:absolute;

    left:0;
    right:0;
    bottom:0;

    display:flex;

    align-items:flex-end;
    justify-content:center;

    min-height:70px;

    pointer-events:none;
}

.lightbox-caption{
    color:#ddd;

    font-size:13px;
    line-height:1.5;

    text-align:center;
}

.lightbox-caption:empty{
    display:none;
}

.lightbox-counter{
    position:absolute;
    right:0;
    bottom:8px;

    color:#777;

    font-size:11px;
    font-weight:bold;
    letter-spacing:2px;
}

.lightbox-current{
    color:var(--orange-light);
}

.lightbox-divider{
    padding:0 5px;
}


/* TABLET */

@media (max-width:950px){

.photo-grid{
    grid-template-columns:repeat(3, 1fr);
}

    .lightbox{
        padding:35px 80px;
    }

}


/* MOBILE */

@media (max-width:700px){

    .photo-gallery-header{
        padding:135px 0 55px;
    }

    .gallery-return{
        margin-bottom:40px;
    }

    .photo-gallery-heading{
        display:block;
    }

    .photo-gallery-heading h1{
        font-size:clamp(48px,16vw,75px);
        letter-spacing:-3px;
    }

    .photo-gallery-total{
        display:flex;

        align-items:baseline;
        gap:8px;

        margin-top:28px;

        text-align:left;
    }

    .photo-gallery-total strong{
        font-size:32px;
    }

    .photo-gallery-total span{
        margin:0;
    }

    .gallery-instruction{
        margin-top:25px;
    }


    .photo-gallery{
        padding:8px 0 75px;
    }

.photo-grid{
    grid-template-columns:repeat(2, 1fr);
    gap:6px;
}

.photo-item{
    margin:0;
}

    .photo-hover{
        display:none;
    }


    /* LIGHTBOX MOBILE */

    .lightbox{
        padding:70px 12px 85px;
    }

    .lightbox-image{
        max-height:calc(100vh - 170px);
    }

    .lightbox-close{
        top:12px;
        right:12px;
    }

    .lightbox-prev,
    .lightbox-next{
        top:auto;
        bottom:15px;

        width:52px;
        height:48px;

        border-color:rgba(255,255,255,.18);

        transform:none;
    }

    .lightbox-prev{
        left:15px;
    }

    .lightbox-next{
        right:15px;
    }

    .lightbox-info{
        bottom:3px;
        min-height:55px;
    }

    .lightbox-counter{
        position:static;
        margin:auto;
    }

    .lightbox-caption{
        position:absolute;

        left:15px;
        right:15px;
        bottom:58px;

        padding:8px 10px;

        background:rgba(0,0,0,.65);
    }

}
