:root {
    --gallery-height: 250px;

    @media (min-width: 768px) {
        --gallery-height: 400px;
    }
}

/* Gallery */
.accommodation-gallery {
    position: relative;
    background: #f4f4f4;
    border-radius: 4px;
    overflow: hidden;
}
.accommodation-gallery__viewport {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--gallery-height);
}
.accommodation-gallery__slide {
    display: none;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.accommodation-gallery__slide.active {
    display: flex;
}
.accommodation-gallery__open {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
}
.accommodation-gallery__image {
    max-width: 100%;
    height: var(--gallery-height);
    object-fit: contain;
}
.accommodation-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}
.accommodation-gallery__nav:hover {
    background: rgba(0, 0, 0, 0.7);
}
.accommodation-gallery__nav--prev { left: 10px; }
.accommodation-gallery__nav--next { right: 10px; }
.accommodation-gallery__nav-icon {
    width: 20px;
    height: 20px;
}
.accommodation-gallery__counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox:not([open]) {
    display: none;
}
.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.85);
}
.lightbox__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox__image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}
.lightbox__close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.lightbox__close:hover {
    background: rgba(0, 0, 0, 0.8);
}
.lightbox__close-icon {
    width: 24px;
    height: 24px;
}
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.lightbox__nav:hover {
    background: rgba(0, 0, 0, 0.7);
}
.lightbox__nav--prev { left: 15px; }
.lightbox__nav--next { right: 15px; }
.lightbox__counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 4px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
}
