@font-face {
    font-family: 'Lyon';
    src: url('assets/fonts/LyonDisplay-Light-Web.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Whitney';
    src: url('assets/fonts/whitneylight.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Whitney', sans-serif;
    background-color: #f3eee7;
    color: #313131;
    margin: 0;
    line-height: 1.45;
    letter-spacing: .0571428571rem;
    font-size: 0.9rem
}

h1 {
    text-align: left;
}

.subtitle {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 0.722rem;
    text-transform: uppercase;
    letter-spacing: 0.1428571429rem;
    font-family: Whitney, sans-serif;
    font-weight: 100;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    font-family: Whitney, sans-serif;
    z-index: 200;
}

.header-gutter {
    width: calc(100%);
    height: 3.5rem;
    max-width: 1700px;
    margin-left: auto;
    margin-right: auto;
    background-color: #f3eee7;
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
}

header h1 {
    margin: 0;
    font-size: 36px;
    font-family: 'Whitney', sans-serif;
    font-weight: 100;
}

.header-left {
    display: flex;
    align-self: center;
    justify-content: flex-start;
    flex-direction: column;
    margin-left: 1.75rem;

}

.header-right {
    margin-right: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-hamburger {
    font-size: 24px;
    cursor: pointer;
    margin-left: 1.75rem;
}

.menu-panel {
    position: fixed;
    top: 0;
    left: 0; /* Position it correctly from the start */
    width: 100%;
    height: 100%;
    background: rgba(243, 238, 231, 1);
    opacity: 0; /* Start invisible */
    transition: opacity 0.6s ease; /* Transition for fading */
    z-index: -1; /* Start behind other content */
    pointer-events: none; /* Disable mouse events when not visible */
}

.menu-panel.open {
    opacity: 1; /* Fade in */
    z-index: 1000; /* Bring to front when open */
    pointer-events: auto; /* Enable mouse events when visible */
}


.menu-content {
    width: 100%;
    max-width: 1700px;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: end;
}

.menu-close {
    cursor: pointer;
    position: absolute;
    top: 3.5rem;
    right: 30px;
    fill: #313131;
}

.booking-bar {
    background: #f3eee7;
    bottom: 0;
    left: 0;
    position: fixed;
    z-index: 99;
    visibility: hidden;
    width: calc(100% - 2rem);
    padding: 1rem
}

.booking-bar a {
    padding: 1rem;
    width: calc(100% - 2rem);
    border-color: #313131;
    background-color: #313131;
    color: #f3eee7;
    text-decoration: none;
    font-family: Whitney, sans-serif;
    display: inline-block;
    text-align: center;
}

header h2 a {
    display: block;
    color: #313131;
    text-decoration: none;
    font-family: Whitney, sans-serif;
    font-weight: 100;
    padding-right: 3.5rem;
    text-align: end;
    letter-spacing: 0;
    margin-top: 6px;
    margin-bottom: 6px;
}

header h2 {
    margin: 0;
}


.popup {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    z-index: 1000;
    background-color: #f3eee7;
    opacity: 0; /* Start with transparent */
    transition: visibility 0s, opacity 0.5s ease-in-out; /* Smooth transition for opacity */
    z-index: 1000;
}

.popup-content {
    padding: 1.75rem;
    border-radius: 5px;
    text-align: center;
}

button#closePopup {
    padding: 10px 1.75rem;
    background-color: #f3eee7;
    color: #313131;
    border: 1px solid #313131;
    cursor: pointer;
}

.mobile-location {
    display: none;
}

@media (max-width: 768px) {
    .header-gutter {
        width: 100%;
    }
    header h1 {
        font-size: 30px;
    }
    .booking-bar {
        visibility: visible;
    }
    .mobile-location {
        display: flex;
    }
    .desktop-location {
        display: none;
    }
    .header-right img {
        height: 15px;
        margin-right: 5px;
    }
}



/* Intro */


.main-body {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto 0 auto;
    padding: 1.75rem;
    box-sizing: border-box;
    font-family: 'Lyon', serif;
    font-weight: 100;
}

.main-body h2 {
    font-family: 'Whitney', sans-serif;
    font-size: 18px;
    font-weight: 100;
}

video {
    width: calc(100% - 3.5rem);
    max-width: 1442px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3.5rem;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.section1 {
    margin-left: 30%;
}

@media (max-width: 768px) {
    video {
        height: 50vh; /* 50% of the viewport height */
        object-fit: cover; /* Cover the container, cropping as necessary */
        left: 0;
        object-position: center center;
        padding: 0;
        width: 100%;
    }
    .section1 {
        margin-left: 0;
    }
}



/* Contact */

.section2 {
    display: flex;
    margin-top: 7rem;
    text-align: left;
    flex-wrap: wrap; /* Allows items to wrap onto the next line on smaller screens */
    width: 100%;
    gap: 3.5rem
}

.contact-form-container, .contact-image {
    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
    display: flex;
}

.contact-form-container {
    background: none;
    border-radius: 0;
    width: 100%;
    align-self: flex-end;
    margin-left: auto;
    flex: 1 1 calc(33% - 1.75rem); /* Adjust flex-basis to account for the gap */    
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
}

input {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #313131;
    border-radius: 0;
    background-color: transparent;
    width: calc(100% - 21px);
    font-family: Whitney, sans-serif;
    font-weight: 100;
    color: #313131;
    margin-bottom: 10px;
    font-size: 16px;
}

textarea {
    height: 200px;
    width: 100%;
    resize: none;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #313131;
    background-color: #f3eee7;
    display: block;
    font-family: Whitney, sans-serif;
    font-weight: 100;
    color: #313131;
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-form-container button {
    background-color: transparent;
    color: #313131;
    padding: 10px;
    border: 1px solid #313131;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Whitney', sans-serif;
    font-weight: 100;
    width: 100%
}

.contact-form-container button:hover {
    color: darkred;
}

.contact-image {
    width: 66%;
    display: flex;
    flex: 1 1 calc(67% - 1.75rem); /* Adjust flex-basis to account for the gap */    

}

.contact-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .contact-form-container, .contact-image {
        flex: 1 1 100%; /* Each takes up 100% width on small screens */
    }
    .contact-form-container {
        order: -1; /* Raises .faq above .faq-container */
    }
}


/* Visuals */

.section3 {
    display: flex;
    margin-top: 7rem;
    flex-wrap: wrap; /* Allows items to wrap onto the next line on smaller screens */
    width: 100%;
    gap: 3.5rem
}

.gallery, .visuals-text {
    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
    display: flex;
}

.visuals-text {
    flex-direction: column;
    flex: 1 1 calc(25% - 1.75rem); /* Adjust flex-basis to account for the gap */    
}

.gallery {
    position: relative;
    overflow: hidden;
    justify-content: center;
    flex: 1 1 calc(75% - 1.75rem);
    gap: 3.5rem;
    flex-wrap: wrap;
}

.shoot {
    position:relative;
    width: calc(50% - 1.75rem);
    display: flex;
}

.slick-dots {
    bottom: 0 !important;
}

.shoot img{
    width: 100%;
    display: block;
}

.slick-next, .slick-prev {
    z-index: 10;
    top: 90% !important;
    color: none !important;
    width: 3.5rem !important;
    height: 3.5rem !important;
}

.slick-prev::before, .slick-next::before {
    content: "" !important;
    display: block;
    height: 100%;
    width: 100%;
}

.slick-prev {
    left: 30% !important;
    background-image: url('assets/media/icons/gallery-arrow-head-left.svg') !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.slick-next {
    right: 30% !important;
    background-image: url('assets/media/icons/gallery-arrow-head-right.svg') !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#galleryImage1, #galleryImage2, #galleryImage3 {
    height: auto;
    object-fit: fill;
    display: block;
    margin: auto;
}

.controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;       /* Ensures controls are on top of the image */
}

.controls-button {
    background-color: transparent;
    border: none;
    font-size: 36px;
    color: white;
    cursor: pointer;
    font-family: 'Whitney', sans-serif;
    font-weight: 100;
    transform: scaleX(0.5);
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    .visuals-text, .gallery, .shoot {
        flex: 1 1 100%; /* Each takes up 100% width on small screens */
    }
}


/* FAQ */


.section4 {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap onto the next line on smaller screens */
    margin-top: 7rem;
    width: 100%;
    gap: 3.5rem
}

.faq-container, .faq {
    flex: 1 1 calc(50% - 1.75rem); /* Adjust flex-basis to account for the gap */    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    .faq-container, .faq {
        flex: 1 1 100%; /* Each takes up 100% width on small screens */
    }
    .faq {
        order: -1; /* Raises .faq above .faq-container */
    }
}

.faq-question {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 1.75rem;
}

.faq-item {
    border-top: solid 1px #313131;
    padding-top: 15px
}

.faq-question::before {
    content: ">";
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
    transform: scaleX(0.5);
}

.faq-question.active::before {
    transform: rotate(90deg) scaleX(0.5);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.75rem;
}

.faq-answer.expanded {
    max-height: 1000px; /* large enough to accommodate the content */
    padding: 10px 1.75rem;
}

.faq img {
    width: 100%;
    height: 17rem;
    object-fit: cover;
    display: block;
    margin: auto;
}


/* Wide Gallery */

.shoot3 {
    width: 100%;
    margin-top: 7rem;
    height: auto;
    max-height: 25rem;
}


.shoot3 img{
    width: calc(100% - 3.5rem);
    display: block;
    margin-left: 1.75rem;
    margin-right: 1.75rem;
    object-fit: cover;
    height: auto;
    object-position: center center;
}

/* Encounters */


.section5 {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap onto the next line on smaller screens */
    margin-top: 7rem;
    width: 100%;
    gap: 80px;
    margin-bottom: 7rem;
}

.encounters-heading {
    flex: 1 1 calc(33% - 3.5rem); /* Adjust flex-basis to account for the gap */    
    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
}

.encounters-body {
    flex: 1 calc(67% - 3.5rem); /* Adjust flex-basis to account for the gap */    
    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
}

.encounters-body p {
    margin-top: 5rem;
}

