* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "montserrat", sans-serif;
    overflow-x: hidden;
}

.socials a {
    display: none;
}

:root {
    --grey-1: #E0E0E0;
    --grey-2: #B0B0B0;
    --grey-3: #888888;
    --grey-4: #444444;
    --grey-5: #121212;
    --global-padding: 25px;
    --header-thickness: 120px;
    --footer-thickness: 60px;
    --navbar-thickness: 60px;
    --thumb-thickness: 170px;
    --global-radius: 10px;
}

/* Header */

.logo-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--header-thickness);
    background-color: var(--grey-5);
    width: 100%;
    max-width: 1920px;
    margin: auto;
}

.logo a {
    height: 100%;
    display: block;
    text-align: center;
}

.logo {
    height: 100%;
    display: block;
    margin: 0 auto;
}

.logo img {
    height: 100%;
    display: block;
    margin: 0 auto;
}

.nav-container {
    height: calc(100vh - var(--header-thickness));
    padding-bottom: var(--global-padding);
    background-color: var(--grey-5);
    max-width: 1920px;
    margin: auto;
}

.navbar {
    background-color: var(--grey-5);
    height: var(--navbar-thickness);
    display: flex;
    border-bottom-left-radius: var(--global-radius);
    border-bottom-right-radius: var(--global-radius);
    position: absolute;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 calc(var(--global-padding) * 3) 0 calc(var(--global-padding) * 3);
}

.navbar-section {
    display: flex;
    margin: auto;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: calc(var(--global-padding) * 3);
    align-items: center;
}

.navbar-link {
    color: var(--grey-1);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    transition: 0.3s ease-in;
}

.navbar-link:hover {
    color: var(--grey-3);
}

.navbar-menu li a#current {
    text-decoration: underline;
}

/* Home */

.slider-wide-container {
    padding: 0px var(--global-padding) 0px var(--global-padding);
    height: 100%;
    width: 100%;
    background-color: var(--grey-5);
}

.slider-wide {
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: var(--global-radius);
}

.slider-wide img {
    display: none;
    object-fit: cover;
    height: 100%;
    width: 100%;
    object-position: center;
}

.slides-wide {
    height: 100%;
    width: 100%;
}

.intro-section {
    display: flex;
    height: 800px;
    padding: var(--global-padding);
    background-color: var(--grey-1);
    max-width: 1920px;
    margin: auto;
    gap: var(--global-padding);
}

.landing-image-container {
    width: 55%;
    height: 100%;
    background-color: var(--grey-1);
    display: flex;
}

.landing-image {
    width: 100%;
    overflow: hidden;
    border-radius: var(--global-radius);
}

.landing-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    object-position: center;
}

.intro-text {
    width: 45%;
    background-color: var(--grey-1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.intro-text h1 {
    color: var(--grey-5);
    font-size: 3.4rem;
    text-align: center;
}

.intro-text p {
    color: var(--grey-4);
    padding: var(--global-padding) 0 var(--global-padding) 0;
    font-size: 1.8rem;
    text-align: justify;
    overflow: hidden;
    margin-top: auto;
    line-height: 2rem;
}

img.displaySlide {
    display: block;
    animation-name: fade-in;
    animation-duration: 1s;
}

@keyframes fade-in{
    from {opacity: 0.5;}
    to {opacity: 1;}
}

.card-section {
    display: flex;
    margin-top: auto;
    gap: var(--global-padding);
}

.link-card {
    background-color: var(--grey-5);
    padding: var(--global-padding);
    border-radius: var(--global-radius);
    width: 50%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
}

.contact-card {
    margin-left: auto;
}

.card-section h2 {
    color: var(--grey-1);
    font-size: 1.6rem;
}

.card-link {
    display: inline-block;
    color: var(--grey-5);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 15px 15px;
    border-radius: var(--global-radius);
    background-color: var(--grey-1);
    font-weight: bold;
    transition: 0.3s ease-in;
}

.card-link:hover {
    background-color: var(--grey-3);
}

.link-card i {
    color: var(--grey-1);
    font-size: 6rem;
    margin: var(--global-padding) 0 var(--global-padding) 0;
    overflow: hidden;
}

/* Footer */

.footer-section {
    background-color: var(--grey-5);
    height: var(--footer-thickness);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1920px;
    margin: auto;
}

.footer-section p {
    font-size: 1rem;
    position: absolute;
    left: var(--global-padding);
    color: var(--grey-1);
}

.socials {
    display: flex;
    position: absolute;
    gap: var(--global-padding);
    height: 100%;
    right: var(--global-padding);
}

.socials a {
    color: var(--grey-1);
    text-decoration: none;
    font-size: 2.5rem;
    transition: 0.3s ease-in;
}

.socials a:hover {
    color: var(--grey-3);
}

.socials i {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Gallery */

.gallery-container {
    background-color: var(--grey-5);
    padding: 0px var(--global-padding) 0px var(--global-padding);
    max-width: 1920px;
    margin: auto;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: var(--global-padding);
    justify-content: center;
    align-content: flex-start;
    padding: calc(var(--navbar-thickness) + var(--global-padding)) var(--global-padding) var(--global-padding) var(--global-padding);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: var(--global-radius);
    min-height: calc(100vh - var(--footer-thickness) - var(--header-thickness));
    background-color: var(--grey-1);
    /*
    background-image: url("Media/Bricks.jpg");
    background-repeat: no-repeat;
    background-position: center;
    */
}

.gallery-card {
    height: auto;
    width: auto;
    max-height: 300px;
    min-width: 0;
    flex-shrink: 1;
    border: 2px solid var(--grey-5);
    overflow: hidden;
    flex-grow: 0;
}

.gallery-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 300px;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-card:hover img {
    transform: scale(1.02);
}

#go-to-top-button {
    position: fixed;
    top: var(--global-padding);
    right: max(calc(var(--global-padding) * 2), calc((100vw - 1920px) / 2 + var(--global-padding) * 2));
    padding: 15px 15px;
    font-size: 1.2rem;
    background-color: var(--grey-5);
    color: var(--grey-1);
    border: none;
    border-radius: var(--global-radius);
    cursor: pointer;
    opacity: 0.75;
    transition: all 0.3s ease-in;
}

#go-to-top-button:hover {
    opacity: 1;
}

.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
    justify-content: center;
    padding: 0 calc(var(--global-padding) * 3) 0 calc(var(--global-padding) * 3);
}

.hidden {
    display: none;
}

.lightbox-main {
    margin: calc(var(--global-padding) * 2) 0 calc(var(--global-padding) * 2 + var(--thumb-thickness)) 0;
    object-fit: contain;
    max-width: 100%;
    width: auto;
    justify-content: center;
}

.lightbox-thumbs {
    flex: 1;
    align-items: center;
    display: flex;
    gap: var(--global-padding);
    padding: var(--global-padding);
    overflow-x: hidden;
    width: 100%;
    justify-content: flex-start;
    position: absolute;
    height: var(--thumb-thickness);
    bottom: 0;
}

.lightbox-thumbs img {
    height: calc(var(--thumb-thickness) - var(--global-padding) * 2 - 10px);
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.75;
    transition: 0.3s ease;
}

.lightbox-thumbs img:hover, .lightbox-thumbs img.active {
    opacity: 1;
    height: calc(var(--thumb-thickness) - var(--global-padding) * 2);
}

.close {
    position: absolute;
    width: calc(var(--global-padding) * 3);
    height: calc(var(--global-padding) * 3);
    top: 0;
    right: 0;
    font-size: 3rem;
    color: var(--grey-1);
    cursor: pointer;
    transition: 0.3s ease-in;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.close:hover {
    color: var(--grey-3);
}

html.no-scroll,
body.no-scroll {
    overflow: hidden;
}

.nav {
    position: fixed;
    top: 50%;
    transform: translateY(calc(-50% - var(--thumb-thickness) / 2));
    font-size: 3rem;
    color: var(--grey-1);
    background: none;
    border: none;
    color: var(--grey-1);
    cursor: pointer;
    z-index: 1001;
    width: calc(var(--global-padding) * 3);
    transition: 0.3s ease-in;
    padding-bottom: 8px;
}

.nav:hover {
    color: var(--grey-3);
}

.nav.prev {
    left: 0;
}

.nav.next {
    right: 0;
}

/* Contact */

.contact-section-container {
    background-color: var(--grey-5);
    padding: 0px var(--global-padding) 0 var(--global-padding);
    max-width: 1920px;
    margin: auto;
}

.contact-section {
    display: flex;
    min-height: calc(100vh - var(--header-thickness) - var(--footer-thickness));
    border-radius: var(--global-radius);
    background-color: var(--grey-1);
    padding: calc(var(--navbar-thickness) + var(--global-padding)) var(--global-padding) var(--global-padding) var(--global-padding);
    gap: calc(var(--global-padding) * 2);
}

.info-container {
    width: 50%;
    display: flex;
    align-items: center;
    max-width: 800px;
    margin-left: auto;
}

.form-intro {
    display: flex;
    flex-direction: column;
}

.form-intro h1 {
    color: var(--grey-5);
    font-size: 2.5rem;
    text-align: left;
    padding-bottom: var(--global-padding);
}

.divider {
    width: 40px;
    height: 2px;
    background-color: var(--grey-5);
}

.form-intro p {
    color: var(--grey-5);
    font-size: 1.5rem;
    line-height: 1.8rem;
    text-align: left;
    text-align: justify;
}

.contact-icon {
    display: flex;
    align-items: center;
    gap: var(--global-padding);
    padding-top: var(--global-padding);
}

.contact-icon i {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.contact-icon a {
    font-size: 1.5rem;
    text-decoration: none;
    color: black;
}

.form-container {
    width: 50%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 800px;
    margin-right: auto;
}

.form-group-container {
    display: grid;
}

.form-info-container {
    display: flex;
    gap: var(--global-padding);
}

.form-group.info {
    width: 50%;
}

.form-group {
    display: flex;
    flex-direction: column;
    padding-bottom: var(--global-padding);
}

.form-label {
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.form-input,
.form-textarea {
    padding: 0.5rem;
    border: 2px solid var(--grey-5);
    display: flex;
    width: 100%;
    font-size: 1.5rem;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
    outline: none;
}

.form-textarea {
    min-height: 150px;
    resize: none;
}

.form-submit {
    background-color: var(--grey-5);
    border: 2px solid var(--grey-5);
    color: var(--grey-1);
    padding: 15px 15px;
    transition: 0.1s ease-in;
    cursor: pointer;
    font-size: 1.5rem;
}

.form-submit:hover {
    background-color: white;
    color: var(--grey-5);
}

.thanks-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: var(--global-padding);
    background-color: var(--grey-5);
}

.thanks-text h1 {
    font-size: 3rem;
    text-align: center;
    color: var(--grey-1);
}

.thanks-text a {
    font-size: 2.5rem;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
    color: var(--grey-1);
}

.thanks-text a:hover {
    color: var(--grey-3);
}

.gallery-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.gallery-card-title {
    font-size: 1.5rem;
    text-align: center;
    text-decoration: underline;
}

/* Media Queries */

@media screen and (max-width: 1637px) {
    .intro-text h1 {
        font-size: 3rem;
    }

    .intro-text p {
        font-size: 1.7rem;
        line-height: 1.9rem;
    }

    .card-section h2 {
        font-size: 1.7rem;
    }

    .card-link {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 1512px) {
    .intro-text h1 {
        font-size: 2.7rem;
    }

    .intro-text p {
        font-size: 1.6rem;
        line-height: 1.8rem;
    }

    .card-section h2 {
        font-size: 1.6rem;
    }

    .card-link {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 1339px) {
    .intro-text h1 {
        font-size: 2.3rem;
    }

    .intro-text p {
        font-size: 1.6rem;
    }

    .card-section h2 {
        font-size: 1.4rem;
    }

    .card-link {
        font-size: 1.3rem;
    }

    .link-card i {
        font-size: 5rem;
    }
}

@media screen and (max-width: 1200px) {
    .intro-section {
        flex-direction: column;
        height: auto;
    }

    .landing-image-container {
        width: 100%;
    }

    .landing-image {
        height: 600px;
    }

    .intro-text {
        width: 100%;
    }

    .intro-text h1 {
        font-size: 3.4rem;
    }

    .intro-text p {
        font-size: 1.8rem;
        line-height: 2rem;
    }

    .card-section h2 {
        font-size: 1.6rem;
    }

    .card-link {
        font-size: 1.5rem;
    }

    .link-card i {
        font-size: 6rem;
    }

    .contact-section {
        flex-direction: column;
    }

    .info-container {
        margin: auto;
        width: 100%;
        max-width: 800px;
    }

    .form-container {
        margin: auto;
        width: 100%;
        max-width: 800px;
    }
}   

@media screen and (max-width: 768px) {
    :root {
        --global-padding: 10px;
        --header-thickness: 80px;
        --footer-thickness: 40px;
        --navbar-thickness: 50px;
        --thumb-thickness: 120px;
        --global-radius: 10px;
    }

    /* Home */

    .nav-container {
        height: 70vh;
    }

    .card-section {
        flex-direction: column;
        align-items: center;
    }

    .link-card {
        max-width: 400px;
        width: 100%;
    }

    .link-card.contact-card {
        margin-left: 0;
    }

    .card-section h2 {
        font-size: 1.5rem;
    }

    .card-link {
        font-size: 1.4rem;
    }

    .link-card i {
        font-size: 4rem;
    }

    /* Footer */
    .socials a {
        font-size: 1.8rem;
    }

    .footer-section p {
        font-size: 0.8rem;
    }

    .nav {
        font-size: 2rem;
        padding-bottom: 4px;
    }

    .close {
        font-size: 2rem;
    }

    #go-to-top-button {
        font-size: 1rem;
    }

    .thanks-text h1 {
        font-size: 2rem;
    }

    .thanks-text a {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 720px) {
    .intro-text h1 {
        font-size: 3rem;
    }

    .intro-text p {
        font-size: 1.7rem;
        line-height: 1.9rem;
    }

    .landing-image {
        height: 500px;
    }
}

@media screen and (max-width: 650px) {
    .intro-text h1 {
        font-size: 2.6rem;
    }

    .intro-text p {
        font-size: 1.6rem;
        line-height: 1.8rem;
    }

    .form-intro h1 {
        font-size: 2.4rem;
    }

    .form-intro p,
    .contact-icon i,
    .contact-icon a,
    .form-label,
    .form-submit,
    .form-input,
    .form-textarea
    {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 555px) {
    .intro-text h1 {
        font-size: 2.2rem;
    }

    .intro-text p {
        font-size: 1.5rem;
    }

    .landing-image {
        height: 400px;
    }

    .form-intro h1 {
        font-size: 2.3rem;
    }

    .form-intro p,
    .contact-icon i,
    .contact-icon a,
    .form-label,
    .form-submit,
    .form-input,
    .form-textarea
    {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 500px) {
    .intro-text h1 {
        font-size: 2rem;
    }

    .intro-text p {
        font-size: 1.4rem;
    }

    .form-intro p,
    .contact-icon i,
    .contact-icon a,
    .form-label,
    .form-submit,
    .form-input,
    .form-textarea
    {
        font-size: 1rem;
    }
}

@media screen and (max-width: 450px) {

    .navbar-link {
        font-size: 0.8rem;
    }

    .intro-text h1 {
        font-size: 1.8rem;
    }

    .intro-text p {
        font-size: 1.3rem;
        line-height: 1.3rem;
    }

    .footer-section p {
        font-size: 0.5rem;
    }

    .landing-image {
        height: 300px;
    }

    .form-intro p,
    .contact-icon i,
    .contact-icon a,
    .form-label,
    .form-submit,
    .form-input,
    .form-textarea
    {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 386px) {
    .form-intro p,
    .contact-icon i,
    .contact-icon a,
    .form-label,
    .form-submit,
    .form-input,
    .form-textarea
    {
        font-size: 0.8rem;
    }
}

@media screen and (max-height: 500px) {
    :root {
        --thumb-thickness: 100px;
    }
}


@media screen and (max-height: 300px) {
    :root {
        --thumb-thickness: 80px;
    }
}