.filterable-gallery-wrapper-b938ba46 {
    width: 100%;
}

.gallery-filters-b938ba46 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.filter-btn-b938ba46 {
    padding: 8px 16px;
    border: none;
    background-color: #f1f1f1;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s, transform 0.2s, border 0.3s;
}

.filter-btn-b938ba46:hover,
.filter-btn-b938ba46.active {
    background-color: #333;
    color: #fff;
    transform: translateY(-2px);
}

.gallery-grid-b938ba46 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item-b938ba46 {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, scale 0.4s ease;
    opacity: 1;
    transform: scale(1);
    cursor: pointer;
}

.gallery-item-b938ba46.hidden {
    display: none;
}

.gallery-item-b938ba46.animating-out {
    opacity: 0;
    transform: scale(0.8);
}

.gallery-item-b938ba46.animating-in {
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 0.4s forwards;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item-b938ba46 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1 / 1; /* Default, can be overridden by controls */
    transition: transform 0.5s ease;
}

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

.gallery-overlay-b938ba46 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-b938ba46:hover .gallery-overlay-b938ba46 {
    opacity: 1;
}

.gallery-overlay-b938ba46 i {
    color: white;
    font-size: 24px;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.gallery-item-b938ba46:hover .gallery-overlay-b938ba46 i {
    transform: scale(1);
}

/* Lightbox Styles */
.gallery-lightbox-b938ba46 {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox-b938ba46.active {
    display: flex;
    opacity: 1;
}

.lightbox-content-b938ba46 {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-lightbox-b938ba46.active .lightbox-content-b938ba46 {
    opacity: 1;
    transform: scale(1);
}

.lightbox-img-wrapper-b938ba46 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-main-img-b938ba46 {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.lightbox-main-img-b938ba46.fade-out {
    opacity: 0;
}

.lightbox-close-b938ba46 {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

.lightbox-close-b938ba46:hover {
    color: #ccc;
}

.lightbox-nav-b938ba46 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: color 0.3s, transform 0.2s;
    z-index: 2;
}

.lightbox-nav-b938ba46:hover {
    color: #ccc;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-b938ba46:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.lightbox-prev-b938ba46 {
    left: -50px;
}

.lightbox-next-b938ba46 {
    right: -50px;
}

@media (max-width: 768px) {
    .lightbox-prev-b938ba46 { left: 10px; }
    .lightbox-next-b938ba46 { right: 10px; }
    .lightbox-close-b938ba46 { top: 10px; right: 10px; }
}