* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    --color-black: #000000;
    --color-black-transparent: color-mix(in srgb, var(--color-black) 75%, transparent 25%);
    --color-white: #FFFFFF;
    --color-gray: #D9D9D9;
    --color-gray-light: #F8F8F8;
    --color-gray-transparent: color-mix(in srgb, var(--color-gray) 50%, transparent 50%);
    --color-orange: #C49C6E;
}

a:any-link {
    color: inherit;
    text-decoration: none;
}

@font-face {
    font-family: "The Seasons Regular";
    src: url('assets/font/theseasons.regular.ttf') format('truetype'); 
    font-weight: 100;
}
@font-face {
    font-family: "Allura Regular";
    src: url('assets/font/allura.regular.2.ttf') format('truetype'); 
    font-weight: 100;
}

html, body {
    position: absolute;
    width: 100%;
    height: 100dvh;

    scroll-snap-type: y mandatory;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    font-family: "The Seasons Regular";
    font-size: 16px;

    color: var(--color-black);
    background-color: var(--color-white);
}

.page {
    position: relative;
    width: 100%;
    height: 100%;

    scroll-snap-align: start;
    overflow: auto;
}

.bg-gray-light {
    background-color: var(--color-gray-light);
}

/* #region page-part */
.page-part {
    position: relative;
    width: 100%;
    height: 100%;
}

.page-part__content {
    position: relative;
    width: 100%;
    height: 100%;
}

.page-part__content-inner {
    position: relative;
    width: 100%;
    height: 100%;

    padding: 100px;
}

.page-part__content-inner h1,
.page-part__content-inner h2,
.page-part__content-inner h3 {
    text-align: center;
    margin-bottom: 25px;
}

.page-part__content-inner p {
    text-align: justify;
    font-size: 16px;
    margin-bottom: 25px;
}
/* #endregion */

/* #region page-part__image */
.page-part__image {
    position: relative;
    width: 100%;
    height: 100%;
}

    .page-part__image img {
        position: absolute;
        height: 100%;
        width: 100%;
        object-fit: contain;
    }
/* #endregion */

/* #region page-part__figure */
.page-part__figure {
    position: relative;
    display: flex;
    flex-direction: column;

    gap: 25px;
    justify-content: center;
    align-content: center;
}
    .page-part__figure figure {
        width: fit-content;
        height: fit-content;
        display: flex;
        gap: 25px;
        margin-left: auto;
        margin-right: auto;
    }

        .page-part__figure figcaption {
            font-size: 24px;
        }
/* #endregion */

#site-title {
    font-family: "Allura Regular";
    font-size: 60px;
    font-weight: 100;
}

/* #region gallery */
.gallery {
    position: relative;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));  
    grid-auto-rows: 12.5rem;
    grid-auto-flow: dense;
    
    gap: 0.75rem;
}

    .gallery figure {
        container: figure / inline-size;
        overflow: hidden;

        display: grid;

        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
    }

    .gallery figcaption {
        grid-area: 1 / 1 / -1 / -1;
        align-self: end;
        z-index: 1;

        padding: 3em 15% 1em 1em;
        color: #fff;
        font-size: 0.875rem;
        line-height: 1.3;
        background: linear-gradient(transparent 25%, rgb(0 0 0 / 0.75));
        display: none;
        }

    .gallery figure:hover img {
        scale: 1.125;
    }

    .gallery img {
        inline-size: 100%;
        block-size: 100%;
        object-fit: cover;

        /* grid-row: 1 / -1; */
        /* grid-column: 1 / -1; */
        grid-area: 1 / 1 / -1 / -1;

        transition: scale 1s ease-in-out;
    }

    @container figure (width > 20rem) {
        .gallery figcaption {
            display: block;
        }
        }

        .gallery figcaption h3 {
            font-size: 1.0625rem;
        }

        .gallery figcaption p {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

    @media (width > 600px) {
    .gallery figure:nth-child(1) {
        grid-area: span 2 / span 2;
    }

    .gallery figure:nth-child(4n + 1) {
        grid-row: span 2;
    }

    .gallery figure:nth-child(4n + 2) {
        grid-column: span 2;
    }
    }

/* #endregion */

/* #region content__about-me */
#content__about-me {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);

    height: 100%;
    width: 100%;
    gap: 25px;
}

    #content__about-me .photo {
        grid-column: 1 / span 2;
        grid-row: 1 / span 3;
        justify-self: center;
    }

    #content__about-me .text {
        grid-column: 3 / span 3;
        grid-row: 1 / span 2;
    }

    #content__about-me .butterfly {
        grid-column: 2 / span 2;
        grid-row: 4 / span 2;
    }

    #content__about-me img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
    }

    #content__about-me p {
        font-size: 16px;
    }

    #content__about-me figure {
        display: flex;
        gap: 25px;
        width: fit-content;
        margin: 0 auto;
    }
/* #endregion */

/* #region grid layouts */ 
.grid__column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));

    gap: 1.25rem;

    justify-items: center;
    align-items: center;
}

    .grid__column img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* #endregion */

/* #region site-header */
.site-header {
    position: fixed;
    width: 100%;
    padding: 15px;
    
    z-index: 999;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    background-color: var(--color-white);
}

    .site-header ul li {
        list-style: none;
    }
/* #endregion */

/* #region primary-navigation */
.primary-navigation{
    position: relative;
    display: flex;
    width: 100%;

    justify-content: space-between;
    padding: 15px 0;
}

    .primary-navigation .menu-btn {
        padding: 15px;
        background-color: var(--color-gray);
        cursor: pointer;
    }

    #btn_book {
        background-color: var(--color-orange);
    }
/* #endregion */

/* #region secondary-navigation */
.secondary-navigation {
    position: absolute;
    display: none;
    opacity: 0;
    width: fit-content;

    transition: display 250ms ease;
}
    .secondary-navigation.active {
        display: flex;
        flex-direction: column;
        opacity: 1;
    }

    .secondary-navigation > li {
        padding: 15px;
        background-color: var(--color-gray-light);
    }

    .secondary-navigation > li:hover {
        padding: 15px;
        background-color: var(--color-gray);
    }
/* #endregion */


/* #region contact-form */
.contact-form {
    display: grid;
    max-width: 500px;
    width: 100%;
}

    .contact-form label {
        padding: 1.25rem 0;
    }

    .contact-form textarea {
        width: 100%;
        min-height: 100px;
        resize: vertical;
    }

    .contact-form button {
        width: fit-content;
        justify-self: center;
        padding: 0.5rem 1.25rem;
        margin-top: 1.25rem;
    }
/* #endregion */



/* MOBILE */
@media (max-width: 480px) {

    html, body {
        font-size: small;

        scroll-snap-type: none;
    }

    .page-part__content-inner {
        padding: 100px 25px;   
    }

    #site-title {
        top: 75px;
        font-size: 40px;
    }   
    
    .page-part__figure figcaption {
            font-size: 12px;
    }

    .grid__column {
        grid-template-columns: 1fr;
    }

    /* #region content__about-me */
    #content__about-me {
        grid-template-columns: 1fr;
    }

        #content__about-me > .photo,
        #content__about-me > .butterfly,
        #content__about-me > .text,
        #content__about-me > .blog {
            grid-column: 1 / span 1;
        }

        #content__about-me > .photo {
            grid-row: 1;
            width: 100%;
        }

        #content__about-me > .text {
            grid-row: 2;
            font-size: 10pt;
        }

        #content__about-me > .butterfly {
            grid-row: 3;
        }
    /* #endregion */

}