/***** CSS Reset *****/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

body, html{
    position: fixed;
    width: 100%;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
a{
    color: inherit;
    text-decoration: none; 
}
ul, li{
    list-style-type: none;
    padding: 0;
    margin: 0;
}

button,
input,
optgroup,
select,
textarea{
    border:none;
    background-image:none;
    background-color:transparent;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    border-radius: none;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

@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: inherit;
}
.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                           */
/************************************************************/

#banner{
    position: fixed;
    top: 0;
    text-align: center;
    height: 10rem;
    width: 100%;
    z-index: 999;
    opacity: .75;
    background-color: red;
}
    #banner svg{
        fill: inherit;
        margin: 0 auto;
        max-height: 100%;
        width: auto;
        background-color: aqua;
    }

#navigation{
    position: fixed;
    bottom: 0;
    text-align: right;
    height: auto;
    width: 100%;
    z-index: 999;
    opacity: .75;
    pointer-events: none;
}
    #navigation .item{
        width: auto;
        pointer-events: all;
        background-color: yellow;
    }


#wrapper {
    position: absolute;
    top: 0;
    width: 100%;
    height: auto;
    background-color: aqua;
}

/*
#banner, #navigation, #slides{
    transition: color .2s ease, fill .2s ease;
}
*/

#wrapper[p='slides'] #container{ scroll-snap-type: y mandatory; }
#wrapper[p='products'] #container,
#wrapper[p='information'] #container{ scroll-snap-type: none !important; }

    #container{
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: scroll;
        display: grid;
        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";
        transition: .5s;
        transition-timing-function: ease;
        -webkit-perspective: 1000;
        -webkit-backface-visibility: hidden;
    }
        #container section{
            position: relative;
            width: 100%;
        }
/*

        #container {
          scrollbar-width: none;
          -ms-overflow-style: -ms-autohiding-scrollbar;
        }
        #container::-webkit-scrollbar {
          display: none;
        }
*/


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

#slides {
    grid-area: slides;
    height: 100vh;
    width: 100%;
    transition: opacity .4s;
    background-color: lime;
}
    #wrapper[p='slides'] #slides{ scroll-snap-align: start; }

    #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 {
    grid-area: products;
    transition: opacity .4s;
    background-color: orange;
}

    #wrapper[p='slides'] #products{ scroll-snap-align: start; }

    #products .inner-parent{
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100rem;
        margin: 0 auto;
        background-color: mediumorchid;
    }
        #product {
            height: 100vh;
            margin: 0 auto;
            grid-area: products;
        /*    scroll-snap-align: start;*/
            display: flex;
            flex-wrap: wrap;
            width: 100%;
            background-color: orange;
        }

        .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 {
    grid-area: information;
    height: auto;
    background-color: yellow;
}

    #information .inner-parent{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 60rem;
        margin: 0 auto;
        background-color: aqua;
    }

        .description, .contacts{
            position: relative;
            height: auto;
            width: 100%;
        }
        .contacts{
            display: flex;
            flex-wrap: wrap;
            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) {
}
