/* General Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: black;
    font-family: "raleway";
}

header {
    /* width: 100%; */
    padding: 1rem 1rem 1rem calc(1rem + (100vw - 100%));
    display: flex;
    justify-content: center;
    gap: 2rem;
}

header a {
    color: black;
    text-decoration: none;
    font-size: 1.2rem;
}

header a:hover {
    text-decoration: underline;
}

h1 {
    margin: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 10px;
}

.image {
    width: 100%;
    /* overflow: hidden; */
    /* display: block; */
    /* position: relative; */
    /* margin-bottom: 15px; */
    height: auto;
    overflow: hidden;
}

.image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease-in-out;
}

.image:hover img {
    transform: scale(1.1); /* Zooms in without changing layout */
}

/* Modal Styling */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Centers content vertically */
    gap: 15px;
}


#modalImage {
    object-fit: contain;
    height: 100%;
    width: 100%;

}

.modal-info {
    text-align: center;
    color: white;
    font-family: Arial, sans-serif;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}


.close:hover {
    color: red;
}

#modalName, #modalDate, #modalDescription {
    color: white;
    font-size: 1.2rem;
    margin: 10px 0;
}
