@font-face {
    font-family: 'Helvetica-BQ';
    src: url('../fonts/HelveticaBQ-Regular.woff2') format('woff2'),
        url('../fonts/HelveticaBQ-Regular.woff') format('woff'),
        url('../fonts/HelveticaBQ-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.s1, .s2, .s3{
    font-family: Helvetica-BQ;
    color: white;
}
.s1{
    font-size: 30px;
    line-height: 26pt;
}
.s2{
    font-size: 24px;
    line-height: 26pt;
}
.s3{
    font-size: 18px;
    line-height: 21.6px;
}

/*************************************************************/
/*                       Core Styles                         */
/*************************************************************/

.upper{ text-transform: uppercase; }
.caps{ text-transform: capitalize; }
.low{ text-transform: lowercase; }
.underline{ border-bottom: solid 1px black; }

.hidden{ opacity: 0 !important; pointer-events: none !important; }
.box{ box-sizing: border-box; }
.button{ cursor: pointer; }

.elp{  
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/*************************************************************/
/*                        Typesetting                        */
/*************************************************************/


/*************************************************************/
/*                   Margins and Padding                     */
/*************************************************************/

.p-a{ padding: 1.8rem 2rem; }
.p-t{ padding-top: 1.8rem; }
.p-b{ padding-bottom: 1.8rem; }
.p-l{ padding-left: 2rem; }
.p-r{ padding-right: 2rem; }

.p-a-2{ padding: .9rem 1rem; }
.p-t-2{ padding-top: .9rem; }
.p-b-2{ padding-bottom: .9rem; }
.p-l-2{ padding-left: 1rem; }
.p-r-2{ padding-right: 1rem; }

.m-a{ margin: 1.8rem 2rem; }
.m-t{ margin-top: 1.8rem; }
.m-b{ margin-bottom: 1.8rem; }
.m-l{ margin-left: 2rem; }
.m-r{ margin-right: 2rem; }

.m-b-d{ margin-bottom: 3.6rem; }


.m-a-2{ margin: 3.75rem; }
.m-t-2{ margin-top: 3.75rem; }
.m-b-2{ margin-bottom: 3.75rem; }
.m-l-2{ margin-left: 3.75rem; }
.m-r-2{ margin-right: 3.75rem; }



/************************************************************/
/*                           Core                           */
/************************************************************/

#wrapper {
    position: absolute;
    height: 100vh;
    width: 100%;
    overflow: auto;
    display: grid;
    scroll-snap-type: y mandatory;
    overflow: auto;
    grid-template-columns: repeat(16, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 0px 0px;
    grid-template-areas:
    "slides slides slides slides slides slides slides slides slides slides slides slides slides slides slides slides"
    "products products products products products products products products products products products products products products products products"
    "information information information information information information information information information information information information information information information information";
    background-color: black;
}
        #wrapper section{
            position: relative;
            width: 100%;
        }

/************************************************************/
/*                          Slides                          */
/************************************************************/

#slides {
    grid-area: slides;
    scroll-snap-align: start;
    height: 100vh;
    margin-bottom: 50vh;
    width: 100%;
}
    #carousel{
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 100;
    }
        #carousel .slide{
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
        }

            .image-parent{
                position: absolute;
                display: flex;
                align-items: center;
                width: 100%;
                height: 100%;
                z-index: 100;
            }
            .image-parent.single{ justify-content: center; }
            .image-parent.diptych{ justify-content: space-evenly; }

                .image-parent img{
                    display: block;
                    max-width: 100%;
                }
                .image-parent.single img{ max-height: 85%; }
                .image-parent.diptych img{ max-height: 50%; }

            .background-parent{
                position: absolute;
                width: 100%;
                height: 100%;
                z-index: 0;
            }

    #captions{
        position: absolute;
        bottom: 0;
        width: 100%;
        height: auto;
        z-index: 200;
    }
        #captions .caption{
            display: none;
            width: auto;
        }
        #captions .caption.active{ display: block; }
    
    
    #lightbox{
        opacity: 0;
        pointer-events: none;
        position: fixed;
        top: 0;
        width: 100%;
        height: 100vh;
        z-index: 300;
        background-color: yellow;
    }

    #lightbox.enabled{ opacity: 1; pointer-events: all; }



/************************************************************/
/*                         Products                         */
/************************************************************/

#products {
    max-width: 100rem;
    margin: 0 auto;
    grid-area: products;
    scroll-snap-align: start;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
    .product {
        width: calc(100% /4);
    }
        .product .image{}
        .product .image img:hover{ outline: solid 2pt white; outline-offset: -2pt; }
    
        .product .caption{}
        
        .product img { width: 100%; }


        #caption{
            position: absolute;
            bottom: 0;
            width: 100%;
            height: auto;
            z-index: 200;
            background-color: lime;
        }

        .slide img{
            display: block;
            max-width: 100%;
            max-height: 100%;
        }



/************************************************************/
/*                          Slides                          */
/************************************************************/

#information {
    max-width: 60rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-area: information;
    scroll-snap-align: end;
    height: 75vh;
}
    .description, .contacts{
        position: relative;
        height: auto;
        width: 100%;
    }
    .contacts{
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        width: 100%;
    }


/*************************************************************/
/*                       Responsiveness                      */
/*************************************************************/

@media only screen and (max-width: 767px)  {
    
#wrapper { height: 100%; }
#slides{ height: 100%; }
    
    .product {
        width: calc(100% /2);
        outline: solid 1px blue;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1100px) {
}


@media only screen and (min-width: 1100px) and (max-width: 1600px) {
}

@media only screen and (min-width: 1600px) {
}
