/* General body styling */

/* Gallery container styling */
.gallery {
    text-align: center;
    padding: 20px;
}

/* Dropdown styling */
#category-select {
    margin-bottom: 20px;
    padding: 8px;
    width: 200px;
    font-size: 14px;
    text-align: center;
    border: 2px solid #ff8a04;
    border-radius: 8px;
    background-color: aliceblue;
    color: #d27000;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

#category-select:focus {
    border-color: #c26700;
    background-color: #f0f8ff;
}

#category-select option {
    padding: 10px;
    background-color: white;
    color: #d27000;
    border: none;
}

/* Gallery grid styling */
.gallery-grid {
    display: grid;
    gap: 22px; /* Gap between photos */
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Dynamic columns */
    padding-top: 2vw;
    padding-left: 2vw;
    padding-right: 2vw;
}

/* Pagination container styling */
.pagination {
    margin-top: 20px;
    padding-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Pagination buttons styling */
.pagination button {
    padding: 10px 15px;
    border: none;
    background-color: #cccccc;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination button:hover {
    background-color: #ff8a04;
}

.pagination button:disabled {
    background-color: #ff8a04;
    cursor: not-allowed;
}


@media (min-width: 1100px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr); /* Max 5 photos per row */
    }
}

@media (max-width: 999px) and (min-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr); /* Up to 4 photos per row */
    }
}

@media (max-width: 899px) and (min-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* Up to 3 photos per row */
    }
}

@media (max-width: 599px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* Up to 2 photos per row */
    }
}

.gallery-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 4.7; /* Maintain 4:5 aspect ratio */
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Lightbox styling */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

/* Close button styling */
.close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}
