/* remove default margins */
* {
    margin: 0;
    padding: 0;
    font: inherit;
    box-sizing: border-box;
}

html:focus-within {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}




/* general styling */

html {
    color-scheme: light dark;
}

body {
    text-rendering: optimizeSpeed;
    min-height: 100dvh;
    font-family: system-ui, sans-serif;
    font-size: 1.125rem;
    line-height: 1.5;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
    font-style: italic;
}

.page {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.container {
    width: min(110ch, 100% - 2rem);
    margin-inline: auto;
    background: transparent;
}

main {
    padding-top: 6.2rem;
    overflow: scroll;
}



/* styling the various sections in the page */

.heading {
    background: #048068;
}

.banner {
    background: #92ccb7;
}

.content {
    background: #c8e4c8;
}

.footing {
    background: #043c32;
}


.section a,
.banner .container,
.content .container {
    color: #042b24;
}


.section {
    padding: min(1em, 2%) 0;
}

.section h1 {
    padding-top: min(1em, 2%);
    padding-bottom: min(.3em, 1%);
    font-weight: bold;
    font-size: clamp(1.3rem, calc(4vw + 1rem), 2.6rem);
}

.section h2 {
    padding-top: min(1em, 2%);
    padding-bottom: min(.3em, 1%);
    font-weight: bold;
    font-size: clamp(1.1rem, calc(3vw + 1rem), 2.2rem);
}

.section h3,
.foot h3 {
    padding-top: min(1em, 2%);
    padding-bottom: min(.3em, 1%);
    font-weight: bold;
    font-size: clamp(.9rem, calc(2vw + 1rem), 1.8rem);
}

.contact h4 {
    padding-top: min(1em, 2%);
    font-weight: bold;
    font-size: clamp(.7rem, calc(1vw + 1rem), 1.4rem);
}

.contact h5 {
    padding-top: min(1em, 2%);
    font-weight: bold;
    font-size: clamp(.6rem, calc(.9vw + 1rem), 1.2rem);
}

/*
blockquote {
    background-color: #8dbcb9;
    border-left: .5em solid #048068;
    padding: .5em 1em;
    margin-bottom: 1em;
    font-style: italic;
}
*/

.copyright {
    margin-bottom: min(1em, 1%);
}

.section p {
    padding-bottom: min(1em, 2%);
    text-align: left;
}


#top a,
#bottom a {
    padding: .3em;
    border: 1px solid #042b24;
    border-radius: .5em;
    font-size: 1rem;
}

#top,
#bottom {
    text-align: right;
    padding: 1em;
}

.list .title,
.expect .title {
    font-weight: bold;
    font-size: 1.3rem;
}

.list,
.expect {
    margin-left: 2em;
}

.page-error,
.not-found {
    text-align: center;
}


/* 404 section */
.not-found {

    & h1 {
        font-size: 5rem;
    }

    & p {
        font-size: 1.2rem;
    }
}


/* photos section */
.photo {
    columns: 3 16em;
    column-gap: 1em;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
//    border-radius: 1em;
//    border: .1em solid #fff;
    padding: min(2em, 2%);
//    background: #97ac97;
}


.photo-group,
.photo .title {
    text-align: center;
}

.photo .title {
    font-weight: bold;
}

.tab img,
.photo-group {
    margin-bottom: min(2em, 4%);
}

.photo img,
.gallery_tabs img {
    height: auto;
    max-width: 100%;
    border-radius: 1em;
    border: .3em solid #fff;
}

/* gallery section for tabs navigation */
.gallery_tabs {

    & h3 {
        text-align: center;
        background: #78856b;
        border-radius: 1em 1em 0 0;
        padding-top: min(.5em, 1%);
    }

    & .tab {
        columns: 3 min(17em, 51vw);
        column-gap: 2em;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
        break-inside: avoid;
        padding: min(1em, 1%);
        background: #97ac97;
        border-radius: 0 0 1em 1em;

    }


}



/* footer area */

footer {
//    padding: 2em auto;
}

.footing {
    color: #fff;

    & .container {
        padding: 1em 0;
    }
}

.footing a {
    color: #c8e4c8;
}

footer li {
    list-style-type: none;
    display: inline-block;
    margin-right: min(.5em, 1%);
}

.foot {
    columns: 2 18em;
//    columns: 2 min(18em, 36vw);
    column-gap: 1em;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

.foot .contact {
    margin: 1em 0 2.4em 0;
}

.element-removed {
    display: none;
}

.list:checked ~ .gallery {
//    max-height: 80rem;
}

.gallery {
//    max-height: 0;
//    overflow: hidden;
//    clear: both;
    transition: max-height .3s ease-out;
    display: block;
    width: 100%;
}

.element-hidden {
    visibility: hidden;
    padding-bottom: 7em;
}



/* navigation */

header {
    position: fixed;
    top: 0;
    width: 100%;
}

.paper-menu {
//    height: 6rem;
}

.paper-menu,
.menu-group {
    padding-top: .5em;
}

.menu-group {
    padding-top: 1.5em;
}

.toggle,
.menu-btn {
    display: none;
}

.menu {
    overflow: hidden;
    float: right;
    text-align: center;
}

.menu li {
    list-style: none;
    display: inline-block;
    padding: 0 .3em;
}

.menu a {
    text-decoration: none;
    padding: .15em .3em;
    color: #fff;
    font-weight: bold;
}

.menu a:hover {
    transition: .3s ease-out;
    background: #8dbcb9;
    color: #048068;
}

.menu a:active {
    color: #bc520c;
}

.menu a:visited {
    color: #f6d305;
}

.menu .button {
    margin-bottom: 1em;
    margin-left: 5em;
    display: none;
}

.logo {
    min-width: 12em;
    display: inline;
    float: left;
}

.logo a {
    text-decoration: none;
}

.logo img {
    max-height: 5em;
    padding-bottom: .5em;
}

.logo, .logo a:hover {
    background-color: transparent;
}

.button {
    padding: .5em;
    border-radius: 2em;
    background: orange;
    color: #fff;
    font-weight: bold;
}



/* mobile section */
@media (max-width: 50em) {

    .toggle {
        font-size: 2rem;
        font-weight: bold;
        color: #fff;
        cursor: pointer;
        user-select: none;
        transition: .3s ease-out;
        display: inline-block;
        float: right;
        padding: 0 .8em;
    }

    .menu {
        max-height: 0;
        clear: both;
        overflow: hidden;
        transition: max-height .3s ease-out;
        display: block;
        width: 100%;
    }

    .menu-btn:checked ~ .menu {
        max-height: 20rem;
    }

    .toggle,
    .menu-btn {
        text-align: justify;
    }

    .menu li {
        list-style: none;
        width: 100%;
        padding: .125em 0;
    }

    .menu a {
        display: block;
        width: 100%;
    }

    .menu .button {
        margin-left: auto;
    }



}


