html {
    scroll-behavior: smooth;
    scroll-padding: 60px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden; /* Ensure no horizontal scrolling */
}

/* Hero Banner Section Styles /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
.hero-banner {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    background-image: url('/photography\ services\ page\ images/PPBG.jpg '); /* Replace with the actual path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-image {
    max-width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.hero-container img {
    max-width: 100%;
    height: auto;
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    z-index: 10;


}


.text-overlay {
    position: absolute;
    top: 78%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #1b1b1b;
    width: 100%; /* Adjust width */
    padding: 0 10px; /* Add padding to avoid text touching the edges */
    z-index: 11;
    
    
}

.text-overlay h1 {
    font-size: 3em; /* Original font size */
    font-weight: bold;
    margin-bottom: 0;
    background-color: #ffffffa3;
    line-height: 1.2; /* Adjust line height */
    padding-left: 40px;
    padding-right: 40px;
     margin: 0 auto; /* Center the text */
    filter: drop-shadow(0px 0px 6px rgba(255, 255, 255, 0.933));
}




.text-overlay p {
    font-size: 1.5em; /* Original font size */
    font-weight: bold   ;
    margin-top: 0;
    
    background-color: #ffffffa3;
}

.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1.2em;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0056b3;
}
/* /Photo Grid Section Styles /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
.photo-grid-section {
    padding: 50px 20px;
    max-height: 5000px;
    background-color: #151515;
    margin-bottom: 0px;
}

.k-12-photo-grid-container {
    margin-bottom: 20px;
    padding-top: 20px;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 80px;
    overflow: hidden;
    height: auto;
    background-color: #555;
    
}

.k-12-photo-grid-container h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    color: #ffffff;
    padding-top: 10px;
    padding-bottom: 20px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.photo-grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #ddd;
    width: 100%;
    padding-top: 100%; /* Creates a square aspect ratio */
    display: block;
}

.photo-grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Change this to 'top' or another value */
    transition: transform 0.3s ease;
}

.photo-grid-item:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.5));
}

/* Lightbox Styles //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
  
}

.lightbox-content img{
    max-width: 90%;
    max-height: 80%;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox .close:hover {
    color: #bbb;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: rgb(0, 208, 55);
    font-weight: bold;
    font-size: 50px;
    transition: 0.3s;
    user-select: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover,
.next:hover {
    color: #ff0000;
}

.realestateheading {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    color: #ffffff;
    padding-top: 50px;
   
}
/*inquiry form//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

.inquiry-section {
    position: relative;
    width: 100%;
    min-height: 60vh; /* Full height of the viewport */
    background-color: #333; /* Fallback background color */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 50px;
    box-sizing: border-box;
    margin-bottom: 50px;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom; /* Display the bottom part of the image */
    opacity: 0.6; /* Slight opacity for blending */
    z-index: -1; /* Ensure the image stays in the background */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for better contrast */
    z-index: 1;
}

.styled-form {
    position: relative;
    background: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    z-index: 2; /* Ensure the form is above the background and overlay */
    box-sizing: border-box; /* Ensure padding is included in width calculations */
    margin: 0; /* Remove default margins */
}

.styled-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.styled-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.styled-form input[type="text"],
.styled-form input[type="email"],
.styled-form input[type="tel"],
.styled-form input[type="date"],
.styled-form input[type="time"],
.styled-form select,
.styled-form textarea,
.styled-form button[type="submit"] {
    width: 100%; /* Ensure all elements are the same width */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly opaque background for input fields */
}

.styled-form textarea {
    resize: vertical;
}

.styled-form button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.styled-form button[type="submit"]:hover {
    background-color: #0056b3;
}



/* Back to Top Button */
.back-to-top {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 60px;
    
}

.back-to-top a {
    text-decoration: none;
    color: #fff;
    background-color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-to-top a:hover {
    background-color: #555;
}



/* ///////////////////////////////////////////////// Responsive Styles ///////////////////////////////////////////////// */

/* >>>>>>>>>>>>>>>>>>> Media query for smaller screens 764px and below <<<<<<<<<<<<<<<<<<<<<*/
@media (max-width: 764px) {
    .menu-toggle {
        display: flex;
        padding-right: 20px;
    }

    nav ul {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0.5s ease; /* Transition for fade-in/fade-out effect */
    }

    nav ul.show {
        opacity: 1;
        visibility: visible;
    }

    nav li {
        margin-right: 0;
        margin-bottom: 20px;
    }

    nav a {
        text-shadow: 8px 8px 15px rgba(0, 0, 0, 0.776); /* Text shadow effect */
    }

    .logo-overlay img {
        padding-left: 20px;
    }


    .text-overlay {
        padding: 0 5px; /* Reduced padding */
    }
    
    .text-overlay h1 {
        letter-spacing: 0.5px; /* Increased letter spacing */
        line-height: 1.2; /* Adjusted line height */
        font-size: 3em; /* Original font size */
    }

    .text-overlay h1 {
        width: 100%; /* Increase the width */
        font-size: 2em;
        margin: 0;
        padding: 0;
        
    }
    .text-overlay p {
        width: 100%; /* Increase the width */
        padding: 0 2px; /* Increase padding */
        font-size: 1.25em; /* Adjust font size */
    }

    .hero-banner {
        height: 600px; /* Reduce the height by 100px */
    }
    .hero-container img {
        object-fit: contain; /* Change to contain to show more of the image */
        object-position: top center; /* Position the image to show more of the upper part */
    }

    .text-overlay {
        width: 90%; /* Increase the width */
    }
    
    .text-overlay h1 {
        font-size: 30px; /* Reduce the font size to help keep the text on two lines */
        padding-right: 10px;    
        padding-left: 10px;
        margin: 0 auto; /* Center the text */
    }
    
    .text-overlay p {
        font-size: 1.25em; /* Adjust font size */
    }


    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .k-12-photo-grid-container h2 {
        font-size: 1.5em;
    }

    .lightbox .prev, .lightbox .next {
        font-size: 30px;
    }
}


/* >>>>>>>>>>>>>>>>>>> Media query for smaller screens 460px and below <<<<<<<<<<<<<<<<<<<<<*/
@media (max-width: 420px) {
    .hero-banner {
        max-height: 550px; /* Further reduce the height */
    }

    .hero-banner img {
        width: auto; /* Ensure the image scales properly */
        height: 400px;
        object-position: bottom center; /* Position the image to show more of the upper part */
    }

    .overlay-image {
        max-width: auto;
        height: 500px;

    }


    .text-overlay {
        width: calc(100% - 40px); /* Ensure the text has 20px padding on both sides */
        padding: 0 20px; /* Add 20px padding on the left and right */
        box-sizing: border-box; /* Include padding in the element's total width */
        margin: 0 auto; /* Center the text */
    }
    
    .text-overlay h1 {
        font-size: 1.7em; /* Further reduce the font size to keep the text on two lines */
        line-height: 1.2; /* Adjust line height */
        margin: 0 auto; /* Center the text */
    }
    
    .text-overlay p {
        font-size: 20px; /* Adjust font size */
        margin: 0 auto; /* Center the text */
        color: #000000;
      
    }

    .styled-form {
        max-width: 390px; /* Increase the form width to 90% of the container */
        padding: 10px; /* Adjust padding to keep a clean look */
    }

    .styled-form h2 {
        font-size: 18px;
    }

    .styled-form label {
        font-size: 12px;
    }

    .styled-form button[type="submit"] {
        font-size: 12px;
        padding: 8px 12px;
    }

    .cta-button {
        margin-top: 20px;
        margin-bottom: 50px;
    }

    .inquiry-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}
