@charset "utf-8";
/* CSS Document */
body { font-family: sans-serif; margin: 0; padding: 0; background: #000; color: #fff; }
.filters { text-align: center; padding: 20px; }
.filter-btn { background: #333; color: white; border: none; padding: 10px 15px; margin: 5px; cursor: pointer; }
.filter-btn.active { background: #555; }
#search-bar { padding: 10px; margin-top: 10px; width: 200px; }

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #222;
}

.gallery-item img {
    width: 100%;
    height: 150px; /* Fixed height for uniform grid */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 100%;
    padding: 5px 0;
    text-align: center;
    font-size: 0.8em;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}
.modal-content, #caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    text-align: center;
}
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

