.swiper-slide {
    position: relative;
}

.gallery-fullscreen-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 1;
    visibility: visible;
}

.swiper-slide:hover .gallery-fullscreen-btn {
    opacity: 1;
    visibility: visible;
}

.gallery-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.gallery-fullscreen-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.gallery-fullscreen-btn:hover svg {
    transform: scale(1.1);
}

/* Ensure figure doesn't block clicks if needed, though Fancybox handles its own clicks */
.swiper-slide figure {
    cursor: pointer;
    margin: 0;
}

.swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}