/* ==========================================================
   SOCIAL PAGE
   PART 1 — BASE + HEADER + CAROUSEL
========================================================== */


/* ==========================================================
   PAGE
========================================================== */

.social-page {

    width: min(1180px, 92%);

    margin: 0 auto;

    padding: 45px 0 100px;

}


/* ==========================================================
   PAGE HEADER
========================================================== */

.social-header {

    max-width: 900px;

    margin: 0 auto 60px;

    text-align: center;

}


/* ==========================================================
   EYEBROW
========================================================== */

.social-eyebrow {

    display: block;

    margin-bottom: 14px;

    font-family: 'Montserrat', sans-serif;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;

    color: #6f8574;

}


/* ==========================================================
   TITLE
========================================================== */

.social-header h1 {

    margin: 0;

    font-family: 'Cormorant Garamond', serif;

    font-size: 64px;

    font-weight: 600;

    line-height: 1.05;

    color: #222;

}


/* ==========================================================
   DIVIDER
========================================================== */

.social-divider {

    width: 55px;

    height: 3px;

    margin: 22px auto 25px;

    background: #e87920;

}


/* ==========================================================
   INTRODUCTION
========================================================== */

.social-intro {

    max-width: 720px;

    margin: 0 auto;

    font-family: 'Montserrat', sans-serif;

    font-size: 17px;

    line-height: 1.8;

    font-weight: 400;

    color: #555;

}


/* ==========================================================
   GALLERY
========================================================== */

.social-gallery {

    width: 100%;

    margin: 0 auto;

    text-align: center;

}


/* ==========================================================
   CAROUSEL
========================================================== */

.social-carousel {

    position: relative;

    width: 100%;

    height: 560px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    user-select: none;

    -webkit-user-select: none;

    touch-action: pan-y;

}


/* ==========================================================
   CAROUSEL TRACK
========================================================== */

.social-track {

    position: relative;

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* ==========================================================
   SLIDES — BASE
========================================================== */

.social-slide {

    position: absolute;

    top: 50%;

    left: 50%;

    width: 500px;

    height: 440px;

    padding: 0;

    margin: 0;

    border: 0;

    border-radius: 12px;

    overflow: hidden;

    background: #111;

    cursor: pointer;

    transform:
        translate(-50%, -50%)
        scale(.72);

    opacity: 0;

    pointer-events: none;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .18);

    transition:
        transform .55s ease,
        opacity .55s ease,
        filter .55s ease;

}


/* ==========================================================
   SLIDE IMAGE
========================================================== */

.social-slide img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

}


/* ==========================================================
   ACTIVE / CENTER IMAGE
========================================================== */

.social-slide.is-active {

    transform:
        translate(-50%, -50%)
        scale(1);

    opacity: 1;

    z-index: 5;

    pointer-events: auto;

    filter: none;

}


/* ==========================================================
   PREVIOUS IMAGE
========================================================== */

.social-slide.is-prev {

    transform:
        translate(
            calc(-50% - 430px),
            -50%
        )
        scale(.78);

    opacity: .38;

    z-index: 2;

    pointer-events: auto;

    filter: brightness(.65);

}


/* ==========================================================
   NEXT IMAGE
========================================================== */

.social-slide.is-next {

    transform:
        translate(
            calc(-50% + 430px),
            -50%
        )
        scale(.78);

    opacity: .38;

    z-index: 2;

    pointer-events: auto;

    filter: brightness(.65);

}


/* ==========================================================
   HOVER — SIDE IMAGES
========================================================== */

.social-slide.is-prev:hover,
.social-slide.is-next:hover {

    opacity: .65;

    filter: brightness(.8);

}


/* ==========================================================
   GALLERY ARROWS
========================================================== */

.social-arrow {

    position: absolute;

    top: 50%;

    z-index: 20;

    width: 52px;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, .25);

    border-radius: 50%;

    background: rgba(0, 0, 0, .55);

    color: #fff;

    font-size: 22px;

    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        background .3s ease,
        transform .3s ease;

}


.social-arrow:hover {

    background: rgba(0, 0, 0, .8);

    transform:
        translateY(-50%)
        scale(1.08);

}


/* ==========================================================
   PREVIOUS ARROW
========================================================== */

.social-prev {

    left: 25px;

}


/* ==========================================================
   NEXT ARROW
========================================================== */

.social-next {

    right: 25px;

}

/* ==========================================================
   SOCIAL PAGE
   PART 2 — DOTS + DESCRIPTION + LIGHTBOX
========================================================== */


/* ==========================================================
   DOTS CONTAINER
========================================================== */

.social-dots {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 5px;

    flex-wrap: wrap;

}


/* ==========================================================
   DOT
========================================================== */

.social-dot {

    width: 9px;

    height: 9px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: #c5c9c3;

    cursor: pointer;

    transition:
        width .3s ease,
        background .3s ease,
        transform .3s ease;

}


/* ==========================================================
   ACTIVE DOT
========================================================== */

.social-dot.active {

    width: 28px;

    border-radius: 10px;

    background: #e87920;

}


/* ==========================================================
   DOT HOVER
========================================================== */

.social-dot:hover {

    transform: scale(1.15);

}


/* ==========================================================
   SOCIAL DESCRIPTION
========================================================== */

.social-description {

    max-width: 760px;

    margin: 55px auto 0;

    text-align: center;

}


.social-description p {

    margin: 0 0 22px;

    font-family: 'Montserrat', sans-serif;

    font-size: 16px;

    line-height: 1.8;

    color: #666;

}


.social-description p:last-child {

    margin-bottom: 0;

}


/* ==========================================================
   LIGHTBOX
========================================================== */

.social-lightbox {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

    background: rgba(0, 0, 0, .94);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;

}


/* ==========================================================
   LIGHTBOX OPEN
========================================================== */

.social-lightbox.is-open {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* ==========================================================
   PREVENT PAGE SCROLL
========================================================== */

body.social-lightbox-open {

    overflow: hidden;

}


/* ==========================================================
   LIGHTBOX CONTENT
========================================================== */

.social-lightbox-content {

    position: relative;

    width: min(90vw, 1200px);

    height: min(88vh, 800px);

    display: flex;

    align-items: center;

    justify-content: center;

}


/* ==========================================================
   LIGHTBOX IMAGE
========================================================== */

.social-lightbox-image {

    display: block;

    max-width: 100%;

    max-height: 100%;

    width: auto;

    height: auto;

    object-fit: contain;

    border-radius: 5px;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, .5);

}


/* ==========================================================
   LIGHTBOX CLOSE
========================================================== */

.social-lightbox-close {

    position: absolute;

    top: 25px;

    right: 30px;

    z-index: 30;

    width: 50px;

    height: 50px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, .25);

    border-radius: 50%;

    background: rgba(0, 0, 0, .35);

    color: #fff;

    font-size: 34px;

    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transition:
        background .3s ease,
        transform .3s ease;

}


.social-lightbox-close:hover {

    background: rgba(255, 255, 255, .15);

    transform: scale(1.08);

}


/* ==========================================================
   LIGHTBOX ARROWS
========================================================== */

.social-lightbox-arrow {

    position: absolute;

    top: 50%;

    z-index: 20;

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, .25);

    border-radius: 50%;

    background: rgba(0, 0, 0, .45);

    color: #fff;

    font-size: 24px;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        background .3s ease,
        transform .3s ease;

}


.social-lightbox-arrow:hover {

    background: rgba(255, 255, 255, .15);

    transform:
        translateY(-50%)
        scale(1.08);

}


/* ==========================================================
   LIGHTBOX PREVIOUS
========================================================== */

.social-lightbox-prev {

    left: 25px;

}


/* ==========================================================
   LIGHTBOX NEXT
========================================================== */

.social-lightbox-next {

    right: 25px;

}


/* ==========================================================
   LIGHTBOX COUNTER
========================================================== */

.social-lightbox-counter {

    position: absolute;

    left: 50%;

    bottom: -35px;

    transform: translateX(-50%);

    font-family: 'Montserrat', sans-serif;

    font-size: 13px;

    font-weight: 500;

    letter-spacing: 1px;

    color: rgba(255, 255, 255, .75);

    white-space: nowrap;

}
/* ==========================================================
   SOCIAL PAGE
   PART 3 — TABLET + MOBILE
========================================================== */


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {

    .social-page {

        width: 92%;

    }


    .social-carousel {

        height: 500px;

    }


    .social-slide {

        width: 440px;

        height: 390px;

    }


    .social-slide.is-prev {

        transform:
            translate(
                calc(-50% - 330px),
                -50%
            )
            scale(.72);

    }


    .social-slide.is-next {

        transform:
            translate(
                calc(-50% + 330px),
                -50%
            )
            scale(.72);

    }


    .social-arrow {

        width: 48px;

        height: 48px;

    }


    .social-prev {

        left: 15px;

    }


    .social-next {

        right: 15px;

    }

}


/* ==========================================================
   IPAD / SMALL TABLET
========================================================== */

@media (max-width: 900px) {

    .social-header {

        margin-bottom: 45px;

    }


    .social-header h1 {

        font-size: 54px;

    }


    .social-intro {

        font-size: 16px;

    }


    .social-carousel {

        height: 440px;

    }


    .social-slide {

        width: 390px;

        height: 350px;

    }


    .social-slide.is-prev {

        transform:
            translate(
                calc(-50% - 275px),
                -50%
            )
            scale(.68);

        opacity: .28;

    }


    .social-slide.is-next {

        transform:
            translate(
                calc(-50% + 275px),
                -50%
            )
            scale(.68);

        opacity: .28;

    }


    .social-arrow {

        width: 45px;

        height: 45px;

        font-size: 19px;

    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .social-page {

        width: 100%;

        padding: 30px 0 70px;

    }


    /* ======================================================
       HEADER
    ====================================================== */

    .social-header {

        width: 92%;

        margin: 0 auto 35px;

    }


    .social-eyebrow {

        font-size: 9px;

        letter-spacing: 2.5px;

    }


    .social-header h1 {

        font-size: 42px;

        line-height: 1.1;

    }


    .social-intro {

        font-size: 15px;

        line-height: 1.75;

    }


    /* ======================================================
       CAROUSEL
    ====================================================== */

    .social-carousel {

        height: 350px;

        overflow: hidden;

    }


    .social-slide {

        width: 76vw;

        max-width: 330px;

        height: 260px;

        border-radius: 9px;

    }


    /* ======================================================
       SIDE PHOTOS
    ====================================================== */

    .social-slide.is-prev {

        transform:
            translate(
                calc(-50% - 42vw),
                -50%
            )
            scale(.72);

        opacity: .22;

        filter: brightness(.55);

    }


    .social-slide.is-next {

        transform:
            translate(
                calc(-50% + 42vw),
                -50%
            )
            scale(.72);

        opacity: .22;

        filter: brightness(.55);

    }


    /* ======================================================
       MAIN PHOTO
    ====================================================== */

    .social-slide.is-active {

        transform:
            translate(-50%, -50%)
            scale(1);

        opacity: 1;

    }


    /* ======================================================
       ARROWS
    ====================================================== */

    .social-arrow {

        width: 42px;

        height: 42px;

        font-size: 18px;

        background: rgba(0, 0, 0, .6);

    }


    .social-prev {

        left: 8px;

    }


    .social-next {

        right: 8px;

    }


    /* ======================================================
       DOTS
    ====================================================== */

    .social-dots {

        gap: 7px;

        margin: 5px auto 0;

        width: 92%;

    }


    .social-dot {

        width: 7px;

        height: 7px;

    }


    .social-dot.active {

        width: 23px;

    }


    /* ======================================================
       DESCRIPTION
    ====================================================== */

    .social-description {

        width: 90%;

        margin: 40px auto 0;

    }


    .social-description p {

        font-size: 14px;

        line-height: 1.8;

    }


    /* ======================================================
       LIGHTBOX
    ====================================================== */

    .social-lightbox {

        padding: 20px;

    }


    .social-lightbox-content {

        width: 100%;

        height: 82vh;

    }


    .social-lightbox-image {

        max-width: 100%;

        max-height: 78vh;

        border-radius: 3px;

    }


    /* ======================================================
       LIGHTBOX CLOSE
    ====================================================== */

    .social-lightbox-close {

        top: 15px;

        right: 15px;

        width: 44px;

        height: 44px;

        font-size: 29px;

    }


    /* ======================================================
       LIGHTBOX ARROWS
    ====================================================== */

    .social-lightbox-arrow {

        width: 43px;

        height: 43px;

        font-size: 19px;

    }


    .social-lightbox-prev {

        left: 10px;

    }


    .social-lightbox-next {

        right: 10px;

    }


    .social-lightbox-counter {

        bottom: -28px;

        font-size: 11px;

    }

}


/* ==========================================================
   VERY SMALL PHONES
========================================================== */

@media (max-width: 420px) {

    .social-header h1 {

        font-size: 36px;

    }


    .social-carousel {

        height: 320px;

    }


    .social-slide {

        width: 78vw;

        height: 235px;

    }


    .social-slide.is-prev {

        transform:
            translate(
                calc(-50% - 40vw),
                -50%
            )
            scale(.68);

    }


    .social-slide.is-next {

        transform:
            translate(
                calc(-50% + 40vw),
                -50%
            )
            scale(.68);

    }


    .social-arrow {

        width: 38px;

        height: 38px;

        font-size: 16px;

    }


    .social-prev {

        left: 6px;

    }


    .social-next {

        right: 6px;

    }

}