/* =========================================================
   SCPR CONFERENCE GALLERY
   DARK BLUE / EDITORIAL / OSWALD
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --scp-dark: #071321;

    --scp-dark-2: #0b1b2c;

    --scp-blue: #10243a;

    --scp-blue-light: #18344e;

    --scp-gold: #c9a968;

    --scp-gold-light: #dfc68d;

    --scp-white: #ffffff;

    --scp-text: #d6e1ee;

    --scp-muted: #8fa1b4;

    --scp-border:
        rgba(255, 255, 255, .11);

}



/* =========================================================
   RESET
========================================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    margin: 0;

    padding: 0;

    background:
        var(--scp-dark);

    color:
        var(--scp-white);

    font-family:
        "Oswald",
        sans-serif;

}



/* =========================================================
   MAIN PAGE
========================================================= */

.scp-gallery-page {

    min-height: 100vh;

    padding-bottom: 120px;

    background:

        radial-gradient(circle at 15% 0%,
            rgba(34, 75, 110, .24),
            transparent 30%),

        radial-gradient(circle at 85% 35%,
            rgba(25, 64, 94, .16),
            transparent 32%),

        linear-gradient(145deg,
            #071321 0%,
            #0a1929 48%,
            #06111d 100%);

}



/* =========================================================
   COMMON CONTAINER
========================================================= */

.gallery-container {

    width:
        min(1500px, 90%);

    margin:
        0 auto;

}



/* =========================================================
   HERO
========================================================= */

.gallery-hero {

    padding:
        120px 0 85px;

}


.gallery-kicker {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 24px;

    color:
        var(--scp-gold);

    font-family:
        "Oswald",
        sans-serif;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 4px;

}


.gallery-kicker span {

    width: 45px;

    height: 1px;

    background:
        var(--scp-gold);

}


.gallery-hero h1 {

    max-width: 1100px;

    margin: 0;

    color:
        #ffffff;

    font-family:
        "Oswald",
        sans-serif;

    font-size:
        clamp(52px, 7vw, 105px);

    font-weight: 700;

    line-height: .98;

    letter-spacing:
        -1.8px;

}


.gallery-hero h1 span {

    color:
        var(--scp-gold-light);

}


.gallery-hero p {

    max-width: 750px;

    margin-top: 32px;

    color:
        #c6d4e4;

    font-family:
        "Oswald",
        sans-serif;

    font-size:
        clamp(17px, 1.6vw, 25px);

    font-weight: 300;

    line-height: 1.7;

    letter-spacing: .15px;

}



/* =========================================================
   CONFERENCE LIST
========================================================= */

.conference-list {

    width:
        min(1500px, 90%);

    margin:
        0 auto;

}



/* =========================================================
   CONFERENCE SECTION
========================================================= */
/* 
.conference-section {

    margin-bottom: 135px;

} */



/* =========================================================
   CONFERENCE HEADER
   TITLE + DATE FIRST
========================================================= */

.conference-header {

    position: relative;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 60px;

    margin-bottom: 42px;

    padding:
        0 0 30px;

    border-bottom:
        1px solid var(--scp-border);

        display: none;

}


.conference-header::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -1px;

    width: 95px;

    height: 3px;

    background:
        var(--scp-gold);

}



/* =========================================================
   HEADER LEFT
========================================================= */

.conference-header-left {

    flex: 1;

    min-width: 0;

}


.conference-label {

    margin-bottom: 12px;

    color:
        var(--scp-gold);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 3.5px;

    text-transform: uppercase;

}


.conference-title {

    max-width: 1100px;

    margin: 0;

    color:
        #ffffff;

    font-family:
        "Oswald",
        sans-serif;

    font-size:
        clamp(36px, 4.3vw, 70px);

    font-weight: 600;

    line-height: 1.08;

    letter-spacing:
        -.8px;

}


.conference-venue {

    margin-top: 12px;

    color:
        var(--scp-muted);

    font-size: 14px;

    font-weight: 300;

    letter-spacing: .6px;

}



/* =========================================================
   HEADER RIGHT
========================================================= */

.conference-header-right {

    flex-shrink: 0;

    min-width: 190px;

    text-align: right;

}


.conference-date-label {

    display: block;

    margin-bottom: 5px;

    color:
        var(--scp-gold);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;

}


.conference-date {

    color:
        #dbe6f2;

    font-size:
        clamp(17px, 1.5vw, 23px);

    font-weight: 400;

    line-height: 1.4;

}


.conference-number {

    margin-top: 8px;

    color:
        rgba(255, 255, 255, .08);

    font-size: 50px;

    font-weight: 600;

    line-height: .9;

}



/* =========================================================
   PINTEREST / MASONRY
========================================================= */

.conference-masonry {

    column-count: 4;

    column-gap: 18px;

}



/* =========================================================
   PHOTO
========================================================= */

.masonry-photo {

    position: relative;

    width: 100%;

    margin-bottom: 18px;

    overflow: hidden;

    break-inside: avoid;

    -webkit-column-break-inside: avoid;

    border-radius: 5px;

    background:
        var(--scp-blue);

    cursor: pointer;

}



/* =========================================================
   IMAGE

   NO FIXED HEIGHT

   ORIGINAL RATIO PRESERVED
========================================================= */

.masonry-photo img {

    display: block;

    width: 100%;

    height: auto;

    max-width: 100%;

    object-fit: contain;

    transform:
        scale(1);

    transition:
        transform .75s cubic-bezier(.16, 1, .3, 1),

        filter .45s ease;

}


.masonry-photo:hover img {

    transform:
        scale(1.045);

    filter:
        brightness(.78);

}



/* =========================================================
   IMAGE OVERLAY
========================================================= */

.masonry-photo::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(to bottom,
            transparent 45%,
            rgba(2, 10, 18, .65));

    opacity: 0;

    transition:
        opacity .4s ease;

    pointer-events: none;

}


.masonry-photo:hover::after {

    opacity: 1;

}



/* =========================================================
   VIEW CIRCLE
========================================================= */

.photo-view {

    position: absolute;

    z-index: 5;

    top: 50%;

    left: 50%;

    width: 65px;

    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, .75);

    border-radius: 50%;

    background:
        rgba(0, 10, 18, .30);

    backdrop-filter:
        blur(8px);

    color:
        #ffffff;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 2px;

    opacity: 0;

    transform:
        translate(-50%, -50%) scale(.7);

    transition:
        opacity .35s ease,
        transform .35s ease;

}


.masonry-photo:hover .photo-view {

    opacity: 1;

    transform:
        translate(-50%, -50%) scale(1);

}



/* =========================================================
   IMAGE NUMBER
========================================================= */

.photo-number {

    position: absolute;

    z-index: 6;

    top: 11px;

    right: 11px;

    min-width: 30px;

    height: 30px;

    padding:
        0 7px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, .17);

    background:
        rgba(2, 12, 20, .68);

    backdrop-filter:
        blur(7px);

    color:
        #ffffff;

    font-size: 10px;

    font-weight: 400;

}



/* =========================================================
   DIVIDER
========================================================= */

.conference-divider {

    width: 100%;

    height: 1px;

    margin-top: 85px;

    background:
        linear-gradient(90deg,
            rgba(201, 169, 104, .55),
            rgba(201, 169, 104, .12),
            transparent);

}



/* =========================================================
   LIGHTBOX
========================================================= */

.image-lightbox {

    position: fixed;

    z-index: 999999;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    visibility: hidden;

    opacity: 0;

    transition:
        opacity .3s ease,
        visibility .3s ease;

}


.image-lightbox.active {

    visibility: visible;

    opacity: 1;

}



/* =========================================================
   LIGHTBOX OVERLAY
========================================================= */

.lightbox-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(3, 10, 18, .97);

    backdrop-filter:
        blur(15px);

}



/* =========================================================
   LIGHTBOX INNER
========================================================= */

.lightbox-inner {

    position: relative;

    z-index: 4;

    width:
        min(1250px, 88vw);

}



/* =========================================================
   LIGHTBOX IMAGE
========================================================= */

.lightbox-image-wrap {

    width: 100%;

    height:
        min(76vh, 820px);

    display: flex;

    align-items: center;

    justify-content: center;

}


.lightbox-image-wrap img {

    display: block;

    max-width: 100%;

    max-height: 100%;

    width: auto;

    height: auto;

    object-fit: contain;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, .7);

}



/* =========================================================
   LIGHTBOX BOTTOM
========================================================= */

.lightbox-bottom {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-top: 20px;

}


.lightbox-date {

    margin-bottom: 5px;

    color:
        var(--scp-gold);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 2px;

}


.lightbox-info h2 {

    margin: 0;

    color:
        #ffffff;

    font-size: 25px;

    font-weight: 400;

    line-height: 1.2;

}


.lightbox-venue {

    margin-top: 5px;

    color:
        var(--scp-muted);

    font-size: 11px;

}


.lightbox-counter {

    display: flex;

    align-items: center;

    gap: 8px;

    color:
        #687989;

    font-size: 14px;

}


.lightbox-counter span:first-child {

    color:
        #ffffff;

    font-size: 20px;

}


.lightbox-counter i {

    font-style: normal;

    opacity: .5;

}



/* =========================================================
   CLOSE BUTTON
========================================================= */

.lightbox-close {

    position: absolute;

    z-index: 10;

    top: 25px;

    right: 28px;

    width: 50px;

    height: 50px;

    border:
        1px solid rgba(255, 255, 255, .18);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .05);

    cursor: pointer;

}


.lightbox-close span {

    position: absolute;

    top: 24px;

    left: 14px;

    width: 20px;

    height: 1px;

    background:
        #ffffff;

}


.lightbox-close span:first-child {

    transform:
        rotate(45deg);

}


.lightbox-close span:last-child {

    transform:
        rotate(-45deg);

}



/* =========================================================
   NEXT / PREVIOUS
========================================================= */

.lightbox-nav {

    position: absolute;

    z-index: 10;

    top: 50%;

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, .18);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .05);

    color:
        #ffffff;

    font-size: 17px;

    cursor: pointer;

    transform:
        translateY(-50%);

    transition:
        background .3s ease,
        border-color .3s ease;

}


.lightbox-nav:hover {

    background:
        rgba(255, 255, 255, .13);

    border-color:
        rgba(255, 255, 255, .35);

}


.lightbox-prev {

    left: 22px;

}


.lightbox-next {

    right: 22px;

}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {

    .conference-masonry {

        column-count: 3;

    }

}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    .gallery-hero {

        padding:
            90px 0 65px;

    }


    .conference-header {

        align-items: flex-start;

        flex-direction: column;

        gap: 18px;

    }


    .conference-header-right {

        min-width: 0;

        text-align: left;

    }


    .conference-number {

        display: none;

    }


    .conference-masonry {

        column-count: 2;

        column-gap: 13px;

    }


    .masonry-photo {

        margin-bottom: 13px;

    }


    .conference-divider {

        margin-top: 60px;

    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 550px) {

    .gallery-container,
    .conference-list {

        width:
            calc(100% - 30px);

    }


    .gallery-hero {

        padding:
            70px 0 55px;

    }


    .gallery-hero h1 {

        font-size: 52px;

        letter-spacing:
            -1px;

    }


    .gallery-hero p {

        font-size: 17px;

        line-height: 1.65;

    }


    .conference-title {

        font-size: 34px;

    }


    .conference-masonry {

        column-count: 1;

    }


    .conference-section {

        margin-bottom: 90px;

    }


    .conference-header {

        margin-bottom: 28px;

        padding-bottom: 22px;

    }


    .conference-date {

        font-size: 16px;

    }


    .lightbox-inner {

        width: 94vw;

    }


    .lightbox-image-wrap {

        height: 70vh;

    }


    .lightbox-nav {

        width: 42px;

        height: 42px;

    }


    .lightbox-prev {

        left: 7px;

    }


    .lightbox-next {

        right: 7px;

    }


    .lightbox-close {

        top: 15px;

        right: 15px;

        width: 43px;

        height: 43px;

    }


    .lightbox-close span {

        top: 20px;

        left: 11px;

    }


    .lightbox-bottom {

        align-items: flex-start;

    }


    .lightbox-info h2 {

        font-size: 19px;

    }


    .lightbox-counter {

        display: none;

    }

}