/* ===== GALLERY ===== */
.bebras-gallery-header {
    text-align: center;
    padding: 20px;
}

.bebras-gallery-grid {
    column-count: 3;
    column-gap: 12px;
    padding: 10px;
}

.bebras-gallery-container {
    break-inside: avoid;
    margin-bottom: 12px;
}

.bebras-gallery-image {
    width: 100%;
    border-radius: 10px;
    cursor: zoom-in;
    display: block;
    transition: transform 0.3s, opacity 0.3s;
}

.bebras-gallery-image:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
    .bebras-gallery-grid { column-count: 2; }
}

@media (max-width: 500px) {
    .bebras-gallery-grid { column-count: 1; }
}

/* ===== LIGHTBOX ===== */
#lightbox {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

#lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: white;
    cursor: pointer;
}

.caption {
    color: white;
    margin-top: 10px;
}

#gallery-loader {
    position: relative;
    width: 100%;
    height: 20px;
    background: #eee;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

#gallery-loader {
    position: relative;
    width: 100%;
    height: 20px;
    background: #eee;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

#gallery-progress {
    height: 100%;
    width: 0%;
    background: #31b88a;
    transition: width 0.2s ease;
}

#gallery-counter {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 0;
    left: 0;
    font-size: 12px;
    line-height: 20px;
    color: #333;
    font-weight: 500;
}


/** Buttons **/
.gallery-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gallery-btn {
    display: inline-block;
    padding: 12px 18px;
    background: #31b88a;
    color: #ffeed7;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.gallery-btn:hover {
    background: #028090;
    transform: translateY(-2px);
}

.gallery-btn:active {
    transform: translateY(0);
}