.is-f276e18a-wrapper {
    display: flex;
    flex-direction: column;
}

.is-f276e18a-main {
    width: 100%;
    position: relative;
}

.is-f276e18a-main-link {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.is-f276e18a-main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.is-f276e18a-magnifier {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    color: #fff;
    font-size: 32px;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.is-f276e18a-main-link:hover .is-f276e18a-magnifier {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.is-f276e18a-main-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.is-f276e18a-main-link:hover::after {
    background: rgba(0,0,0,0.2);
}

.is-f276e18a-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.is-f276e18a-thumb {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.is-f276e18a-thumb:hover,
.is-f276e18a-thumb.is-active {
    opacity: 1;
}

.is-f276e18a-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* Custom Fullscreen Modal styles */
.is-f276e18a-fs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
    user-select: none; /* Prevent text selection while dragging */
}

.is-f276e18a-fs-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.is-f276e18a-fs-modal-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.is-f276e18a-fs-modal-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    cursor: grab;
}

.is-f276e18a-fs-modal-img:active {
    cursor: grabbing;
}

.is-f276e18a-fs-modal.is-active .is-f276e18a-fs-modal-img.zoom-active {
    transition: none; /* Disable transition during drag/zoom */
}

.is-f276e18a-fs-modal.is-active .is-f276e18a-fs-modal-img {
    transform: scale(1);
}

.is-f276e18a-fs-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.is-f276e18a-fs-close:hover {
    background: rgba(0,0,0,0.8);
}

/* Lateral Navigation */
.is-f276e18a-fs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.is-f276e18a-fs-nav:hover {
    background: rgba(0,0,0,0.8);
}

.is-f276e18a-fs-nav.is-prev {
    left: 20px;
}

.is-f276e18a-fs-nav.is-next {
    right: 20px;
}

/* Zoom controls */
.is-f276e18a-fs-zoom-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.is-f276e18a-fs-zoom-btn {
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.is-f276e18a-fs-zoom-btn:hover {
    background: rgba(0,0,0,0.8);
}
