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

}

body {
    font-family: var(--bodyFont);
    margin: 2vh;

}

body p {
    line-height: var(--space-md);
}

.desktop-only {
    display: none;
}

#site-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#site-title video {
    height: 100px;
    width: auto;
}

#site-title h1 {
    padding-bottom: 1vh;
}

a {
    color: var(--textColour);
    text-transform: uppercase;
    text-decoration: none;
}


.main_nav {
    border-top: var(--line);
    border-bottom: var(--line);
    padding: 10px;
    ;
}

.nav-links {
    display: flex;
    width: 100%;
    padding: 2vh 0;
    justify-content: space-between;
}



/* navigation */

#menu-main-menu {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

#menu-main-menu li {
    min-width: 5vw;
}

a:hover {
    font-weight: bold;
}

/* landing */
#front-page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-transform: uppercase;
}

#landing-wrapper h1 {
    font-weight: bold;
    font-size: var(--text-lg);
    text-align: center;
}

#front-page-img {
    padding: 2vh 0 1vh 0;
}

#scroll-indicator {
    padding: 2vh 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#scroll-indicator img {
    height: 20px;
    width: auto;

}

.subtitle {
    border-bottom: var(--line);
    width: 100%;
    padding: 1vh 0;
    text-transform: uppercase;
    font-weight: 500;
    font-size: var(--text-xs);
}

.title {
    border-bottom: var(--line);
    width: 100%;
    padding: 5vh 0 1vh 0;
    text-transform: uppercase;
    font-weight: 500;
    font-size: var(--text-xs);
}

#front-page-wrapper,
.small-section {
    padding: 0 0 10vh 0;
}

/* featured */

.project-gallery {
    padding: 2vh 0;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2vh;
}


.project {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}


.project figure {
    position: relative;
    display: inline-block;
}


.project img {
    display: block;
    width: 100%;
    height: auto;
}


.project figcaption {
    position: absolute;
    bottom: 0;
    /* Adjust this to control vertical positioning */
    left: 0;
    width: 100%;
    /* Ensure it spans the width of the image */
    padding: 2;
    /* Optional padding */
    background: rgba(255, 255, 255, 0.5);
    /* Optional background for visibility */

    padding: 2vh;
    text-transform: uppercase;
    font-size: var(--text-base-size);
}

.view-more-link {

    text-align: end;
}

/* testimonial */

#testimonial-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    padding: 2vh 0;
    gap: 2vh;
}


#testimonial-slider-container {
    height: 96vw;
    width: 96vw;
    /* background-color: grey; */
}

.testimonial-content {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2vh;
    padding: 5vh 0;
}


.testimonial-content h3 {
    font-weight: bold;
    text-transform: uppercase;
}

.testimonial-name-container cite {
    font-style: normal;
}

/* slider css */
.slider {
    position: relative;
}

.slides {
    position: relative;
    overflow: hidden;
}

.slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    display: flex;
    opacity: 1;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    border: none;
}

.stars {
    padding: 2vh 0;
    cursor: pointer;
}

/* press */

.gallery-container {
    padding-top: 2vh;
    display: flex;
    flex-wrap: wrap;
    gap: 2vh;
}

.gallery-item {
    width: calc(25% - 2vh);
    cursor: pointer;
    border: var(--line);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal img {
    max-width: 100%;
    max-height: 90%;
}

.modal-navigation {
    margin: 10px 0;
}

.modal-navigation button {
    margin: 0 5px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0);
    border: none;
    cursor: pointer;
}

.model-nav-arrow {
    height: 20px;
    width: auto
}

#close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}



/* footer */
footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    text-align: center;

    text-transform: uppercase;
    min-height: 8vh;
}

#socials {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    min-width: 10vw;
}

#socials img {
    height: auto;
    width: 20px;
}

#socials img:hover {
    height: auto;
    width: 25px;
}

#copyright {
    display: none;
    font-size: var(--text-xs);
}

/* page */
.entry-content {
    padding: 2vh 0;
}

.about-content-wrapper {
    gap: 1em
}


.project-content-gallery-container,
.project-content-nav {
    padding: 2vh 0;
}

#project-content-gallery {
    display: flex;
    gap: 2vh;

}

/* automatic slider */
.wp-block-gallery {
    position: relative;
    overflow: hidden;
}

.wp-block-gallery figure {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    text-align: center;
}

.wp-block-gallery figure img {
    max-width: 100%;
    height: auto;
    margin: auto;
    display: block;
}

.nav-previous a,
.nav-next a {
    display: flex;
    flex-direction: row;
    gap: 10px;

}

/* tablets */
@media only screen and (min-device-width: 768px) {


    body {
        margin: 0 10vw 5vh 10vw;
    }

    #menu-main-menu {
        justify-content: center;
        gap: 10vw;
    }

    #menu-main-menu li {
        min-width: 7vw;
    }

    .project-gallery {
        justify-content: flex-start;
    }

    .project {
        width: calc(50% - 1vh);
    }

    #testimonial-slider-container {
        height: auto;
        width: 40vw;
    }


    #testimonial-container {
        width: 30vw;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        gap: 2vh;
        justify-content: space-between;
        /* min-height: 40vh; */
    }

    .testimonial-content {
        height: 100%;
        min-height: 0;
        padding: 0;
    }

    .project-img {
        width: 40vw;

    }

    #copyright {
        display: block;
    }

    footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 2vh 2vw;
    }


}


/* desktop */
@media only screen and (min-device-width: 1200px) {

    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }

    #front-page-img {
        padding: 1vh 0;
    }

    #landing-wrapper h1 {
        font-size: var(--text-xl);
    }

    .testimonial-content blockquote {
        padding-bottom: var(--space-xl);
    }


    .project {
        width: 23.7%;
        /* height: 60vh; */
    }

    .project.archive {

        width: calc(50% - 1vh);


    }

    .project figcaption {
        opacity: 0;
        /* Hidden by default */
        visibility: hidden;
        /* Ensures it doesn't block interactions when hidden */
        transform: translateY(20px);
        /* Slight offset for animation */
        transition: all 0.3s ease;
        /* Smooth transition */
    }


    .project:hover figcaption {
        opacity: 1;
        /* Fully visible on hover */
        visibility: visible;
        /* Ensure it's interactive */
        transform: translateY(0);
        /* Reset offset */
        font-weight: normal;
    }

}