﻿.presence-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.map-container {
    margin-top: 18px;
    margin-bottom: 0;
    width: 100%;
}

.google-map {
    width: 100%;
    height: 400px;
    border: 0;
    margin-bottom: 5px;
}

.address-container {
    text-align: center;
    margin-top: 0;
    margin-bottom: 50px;
}

    .address-container h2,
    .address-container p {
        margin: 0;
        padding: 0;
    }

    .address-container h2 {
        font-family: 'Roboto', sans-serif;
        font-size: 1.8em;
        font-weight: bold;
        color: #555;
    }

    .address-container p {
        font-size: 1.1em;
        line-height: 1.8;
        color: #666;
    }

.photos-section {
    margin-top: 50px;
    text-align: center;
}

    .title, .photos-section h2 {
        font-family: 'Roboto', sans-serif;
        text-align: center;
        font-size: 1.7em;
        color: #7D7D7D;
        margin-bottom: 20px;
    }

        .title + hr {
            width: 80%;
            margin: 10px auto;
            border: 1px solid #ccc;
        }

    .photos-section hr {
        width: 80%;
        margin: 10px auto;
        border: 1px solid #ccc;
    }

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

    .photo-gallery .row {
        display: flex;
        width: 100%;
        justify-content: space-around;
        margin-bottom: 20px;
    }

.photo-item {
    width: 45%;
    margin: 10px;
}

    .photo-item img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        cursor: pointer; /* Show hand cursor */
    }

/* Modal backdrop */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Backdrop behind all other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.modal-content-container {
    position: relative; /* For positioning the close button */
    max-width: 90%; /* Restrict the width */
    max-height: 80%; /* Restrict the height */
    margin: auto;
    background-color: transparent; /* Transparent background for modal content */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add some shadow for depth */

    display: flex;
    align-items: center; /* Vertically align content */
    justify-content: center; /* Horizontally align content */
    overflow: visible; /* Allow overflow to make close button visible */
}

.modal-content {
    max-width: 100%; /* Responsive image */
    max-height: 80vh; /* Max height of the image */
    border-radius: 15px; /* Rounded corners for the image */
}



/* Previous (left arrow) */
.prev {
    position: absolute;
    top: 50%; /* Vertically centered */
    left: 10px; /* Slightly outside the modal-content-container */
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0%;
    padding: 20px;
    z-index: 1002; /* Below the close button but above modal content */
}

/* Right arrow - next */
.next {
    position: absolute;
    top: 50%;
    right: 10px; /* Stay within the modal */
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0%;
    padding: 20px;
    z-index: 1002; /* Below the close button but above modal content */
}






/* Close button */
.close-modal {
    position: absolute;
    top: -20px; /* Move it upwards so it overlaps the top of the container */
    right: -20px; /* Move it slightly outside the right side of the container */
    font-size: 35px;
    font-weight: bold;
    color: white;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 1003; /* Above other modal elements */
    transition: 0.3s ease; /* Smooth hover effect */
}

    .close-modal:hover {
        background-color: rgba(255, 0, 0, 0.8); /* Change background on hover */
        color: white; /* Change color on hover */
    }





@media (max-width: 768px) {
    .photo-item {
        width: 100%;
        margin-bottom: 20px;
    }

    .address-container p {
        font-size: 1em;
    }

    /* Center modal */
    .modal {
        z-index: 1000; /* Backdrop behind all other elements */
        display: none; /* Hidden by default */
        justify-content: center;
        align-items: center;
        padding: 20px; /* Add some padding */
    }

    .modal-content-container {
        position: relative; /* For positioning arrows */
        z-index: 1001; /* Above modal backdrop */
        max-width: 95%; /* Adjust modal width for mobile */
        max-height: 90vh; /* Restrict height */
        margin: auto;
        background-color: transparent; /* Transparent background for modal content */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add some shadow for depth */

        display: flex;
        align-items: center; /* Vertically align content */
        justify-content: center; /* Horizontally align content */
        overflow: visible; /* Allow overflow to make close button visible */
    }

    .modal-content {
        width: auto; /* Let width adjust automatically */
        max-height: 70vh; /* Ensure the image doesn't take too much height */
        object-fit: contain; /* Maintain aspect ratio */
    }


    .prev {
        position: absolute;
        top: 50%; /* Vertically centered */
        left: 10px; /* Slightly outside the modal-content-container */
        transform: translateY(-50%);
        font-size: 30px; /* Smaller arrows */
        color: white;
        cursor: pointer;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 0%;
        padding: 10px;
        z-index: 1002; /* Below the close button but above modal content */
    }

    .next {
        position: absolute;
        top: 50%;
        right: 10px; /* Slightly outside the modal-content-container */
        transform: translateY(-50%);
        font-size: 30px; /* Smaller arrows */
        color: white;
        cursor: pointer;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 0%;
        padding: 10px;
        z-index: 1002; /* Below the close button but above modal content */
    }




}
