/* #gallery{
    font-family: Arial, sans-serif;
    background: #000;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 20px;
}
.gallery-container {
    position: relative;
    max-width: 800px;
    margin: auto;
}
.gallery-image {
    display: none;
    width: 100%;
    border-radius: 8px;
}
.active {
    display: block;
}
.caption {
    margin-top: 10px;
    font-size: 1.2em;
}
.controls {
    margin-top: 15px;
}
.controls button {
    padding: 8px 16px;
    margin: 0 10px;
    cursor: pointer;
    font-size: 1em;
}

*/

#gallery {
    font-family: Arial, sans-serif;
    background: #fff;
    color: #fff;
    margin: 0;
    padding: 20px;
}
#gallery h2 {
    text-align: center;
}
#gallery .thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
#gallery .thumbs img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    border: 4px solid #18B0D4;
    border-radius: 5px;
    transition: transform 0.3s;
}
#gallery .thumbs img:hover {
    transform: scale(1.05);
}

/* Modal styling */
#gallery .modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
#gallery .modal img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}
#gallery .caption {
    margin-top: 10px;
    font-size: 1.2em;
    color: #fff;
}
#gallery .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
    padding: 10px;
}
#gallery .nav-btn:hover {
    color: #ccc;
}
#gallery .prev { left: 20px; }
#gallery .next { right: 20px; }
#gallery .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
}