/* public/styles/gallery.css */
body {

}

h1 {
    margin-top: 20px;
}

#all-gallery {
    padding-top:30px;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.gallery-item {
    flex: 1 0 200px;
    max-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 200px; /* Set a fixed height for all items */
}

.gallery-item img {
    height: 100%; /* Ensure all images have the same height */
    width: auto;  /* Adjust the width automatically to maintain aspect ratio */
    border-radius: 10px;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 15%;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 55px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 40px;
    user-select: none;
}

.prev,
.next {
    cursor: pointer;
    padding: 20px;
    color: #fff;
}

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