/* ============================== */
/*       1. GLOBAL RESET          */
/* ============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.content-link {
    font-family: 'Nunito', sans-serif;
    font-weight: 100;
    font-size: 1.2em;
    color: #333 !important; 
    text-decoration: none !important;
}

.big-bold {
    font-size: 3em; /* Adjust the size as needed */
    font-weight: bold;
    margin-right: 0.2em; /* Adds a small space between the number and the text */
}

.image1 {
    max-width: 400px;
}
.image1-landscape {
    max-width: 720px;
}

.caption-image {
    font-weight: 100;
    font-variant: small-caps;
}

/* ============================== */
/*       2. TYPOGRAPHY            */
/* ============================== */

body, h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
}

p {
    font-family: 'Nunito', sans-serif;
    font-weight: 100;
    font-size: 1.2em;
}

h1 { font-size: 3em; }
h2 { font-size: 2em; }
h3 { font-size: 2em; }
h4 { font-size: 1.6em; }



/* ============================== */
/*       3. SECTIONS              */
/* ============================== */

/* Base styling for all sections */
section {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    justify-content: flex-start; /* Changed from 'center' to 'flex-start' */
    align-items: flex-start; /* Align items to the left (if needed) */
    min-height: 100vh;
    text-align: left;
    padding: 20px;
    font-size: 1.2em;
    padding-left: 18%;
    padding-right: 18%;
}

/* Odd sections (starting from the 3rd) */
section:nth-of-type(odd):not(:first-of-type) {
    background-color: #333;
    color: #fff;
}

/* Even sections (includes the 2nd) */
section:nth-of-type(even) {
    background-color: #fff;
    color: #333;
}

section.second-dark {
    background-color: #333;
    color: #fff;
}

section.second-light {
    background-color: #fff !important;
    color: #333 !important;
}


/* ================================== */
/* 4. HEADER & MENU (boxed/fixed)     */
/* ================================== */

.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px; /* The bar is 80px tall */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: #fff;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    overflow: visible; /* Allows the large logo to extend below if it's >80px */
}

.page-header .logo {
    position: relative; /* For shadow if needed */
}

.page-header .logo img {
    width: 100px;      /* Default width */
    height: 100px;     /* Default is bigger than the bar */
    margin-top: 30px;  /* Shifts it up a bit so it only overflows downward */
    box-shadow: 0 4px 5px rgba(0,0,0,0.2); /* Subtle shadow below the overhang */
}

.page-header .menu {
    font-size: 1.4em;
    cursor: pointer;
}

/* Override any older .logo/.menu fixed styles */
.logo, .menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    padding: 0 !important;
}



/* ============================== */
/*          5. MODAL              */
/* ============================== */

.modal {
    display: none;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    
    z-index: 1000; /* Over the header */
    justify-content: center; /* Will center .modal-content horizontally */
    align-items: center;     /* Center .modal-content vertically */
}

.modal.active {
    display: flex;
}

/* Full screen modal-content */
.modal-content {
    /* background-color: #fff; */
    /* background-color: #333; */
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    width: 100%;
    height: 100%;
    max-width: none; /* Remove old width constraints */
    border-radius: 0; /* Remove border-radius */
    position: relative;
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    text-align: center;
}

.modal-content a {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    text-decoration: none;
}
.modal-content a:link, a:visited {
    text-decoration: none;
    color: #fff;
}
.modal-content a:hover {
    text-decoration: underline;
    color: #fff;
}

.modal-content img {
    width: 150px;
    height: 150px;
}

/* Close button top-right */
.close {
    position: absolute;
    top: 20px;
    right: 20px;
    /* font-size: 2rem; */
    font-size: 1.4rem;
    cursor: pointer;
}

/* ============================== */
/*       6. VIDEO BACKGROUND      */
/* ============================== */

.video-background {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.video-bg-element {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-background::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        repeating-linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0) 1px,
            rgba(0, 0, 0, 0.1) 1px,
            rgba(0, 0, 0, 0.1) 2px
        );
    z-index: -1;
}

.content-overlay {
    position: relative;
    z-index: 2;
    color: #FFF;
    padding: 20px;
}

/* ============================== */
/*       7. FORMS                 */
/* ============================== */

.form-contact {
    max-width: 720px; /* Set a maximum width for the form */
    width: 100%; /* Make the form responsive */
    margin: 0 auto; /* Center the form horizontally */
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    width: 100%;
    max-width: 800px;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 400;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.form-submit input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.2em;
    cursor: pointer;
}

.form-submit input[type="submit"]:hover {
    background-color: #555;
}

/* ============================== */
/*       8. FOOTER                */
/* ============================== */

footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 10px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-weight: 100;
}

.addresses {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
    text-align: left;
}

.address {
    font-size: 0.8rem;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

footer a {
    text-decoration: none;
}

footer img {
    margin-right: 20px;
}

.sample-image {
    width: 100%;
}

#ca-email > a,
#us-email > a {
    color: azure;
}

#ca-email a,
#us-email a {
    color: azure !important;
    text-decoration: none;
}

.caption1 {
    font-size: 0.5em;
    font-style: italic;
}

/* ============================== */
/*       9. MEDIA QUERIES         */
/* ============================== */

@media (min-width: 1920px) {
    .logo img {
        width: 180px;
    }
    .address {
        font-size: 1.2rem;
    }
}

@media (max-width: 740px) {
    .logo img {
        width: 100px;
        height: auto;
    }
    h1 { font-size: 3em; }
    h2 { font-size: 2.4em; }
    h3 { font-size: 1.6em; }
    h4 { font-size: 1.4em; }

    section {
        font-size: 1.2em;
        padding-left: 5%;
        padding-right: 5%;
        text-align: left;
    }
    .video-background::after {
        background:
            linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
            repeating-linear-gradient(
                to bottom,
                rgba(255, 255, 255, 0) 0,
                rgba(255, 255, 255, 0) 3px,
                rgba(0, 0, 0, 0.1) 3px,
                rgba(0, 0, 0, 0.1) 5px
            );
    }
    .form-group {
        flex-direction: column;
    }
    .addresses {
        flex-direction: column;
    }
    .logo img {
        width: 80px;
    }

    .image1 {
        max-width: 360px;
    }
    .image1-landscape {
        max-width: 360px;
    }
}

@media (orientation: landscape) and (max-height: 480px) {
    .logo img {
        width: 50px;
        height: auto;
    }
}

/* ============================== */
/*       10. GALLERY STUFF        */
/* ============================== */
/* Gallery grid container */
.gallery-container {
    display: grid;
    gap: 10px;
    /* 1 to 4 columns, automatically filling space */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin: 20px 0;
}
/* Make gallery items square with proper aspect ratio */
.gallery-item {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
}

/* Each item just ensures images fill their cell */
.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    object-fit: cover;
}

/* Single column on extra-small screens (optional) */
@media (max-width: 640px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
}

/* Modal styling */
.gallery-modal {
    display: none;  /* Hidden by default */
    position: fixed;
    z-index: 2000;  /* Above everything else */
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

/* The large image displayed in the modal */
.gallery-modal-content {
    display: block;
    margin: 100px auto 0 auto; 
    max-width: 90%;
    max-height: 80vh;
}

/* Close button (top-right corner) */
.gallery-close {
    position: absolute;
    top: 50px;
    right: 50px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

