/* Hero static image BEGIN*/
.hero {
    position: relative;
    width: 100%;
    height: var(--heroHeight);
    background: #000;
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.slide::after {
    content:'';
    position:absolute;
    left:0; top:0;
    width:100%; height:100%;
    display: inline-block;
    background: linear-gradient(rgba(0,0,0, var(--heroDarkening)),rgba(0,0,0, var(--heroDarkening)));
}

.slide>div.content {
    z-index: 99;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* height: calc(100% * ( var(--bigger) + var(--smaller) * var(--smaller))); */
    height: calc(100% * ( var(--bigger)));
}

.slide>div.content>div.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.heroText, .heroTextS {
    margin: 0;
    color: var(--white);
    text-align: center;
}

.heroTextS {
    color: #CEBD88;
    font-style: italic;
}
/* Hero static image END*/



/* Galery section BEGIN */
section.galery {
    position: relative;
    z-index: 0;
    width: 100%;

    padding-block: clamp(3rem, 8vw, 6rem);
    padding-inline: 1.5rem;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    background-color: var(--white);
}

section.galery > div.content {
    width: 100%;
    height: 100%;

    max-width: 1200px;
}

section.galery ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

section.galery li {
    list-style-type: none;
}

section.galery > div.content > ul.grid {
    width: 100%;
    height: 100%;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: calc(clamp(2rem, 5vw, 4rem) / 1.5);
}

section.galery > div.content > ul.grid > li {
    display: flex;
    justify-content: center;
    align-items: center;
}

section.galery > div.content > ul.grid > li img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    width: 100%;
    /* max-width: 350px; */
    height: auto;
}
/* Galery section END */




/* Responsiveness extras */

/* instead of dynamic triggering this... */
@media only screen and (max-width: 1100px) {
    .mobileCentering {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .mobileCentering ul {
        text-align: left;
    }

    .disableOnMobile {
        display: none !important;
    }
}




@media only screen and (max-width: 800px) {
    .slide > div.content {
        height: calc( var(--heroHeight) * (1 - 1 / var(--phi1) / var(--phi1)) );
        /* height: calc(100% * ( var(--bigger) + var(--smaller) * var(--smaller))); */
    }

    .slide img {
        object-position: bottom;
    }
}