.lawn__gallery {
    margin-bottom: var(--s-12);
}

.lawn__gallery-stage {
    position: relative;
    width: 100%;
    height: calc(100vh - 160px);
    max-height: 720px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--c-black);
    touch-action: pan-y;
}

.lawn__gallery-slide,
.lawn__gallery-media,
.lawn__gallery-tl {
    touch-action: pan-y;
}

.lawn__gallery-thumbs {
    touch-action: manipulation;
}

.lawn__gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lawn__gallery-slide--active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.lawn__gallery-slide--exit {
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.lawn__gallery-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lawn__gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(29, 29, 31, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: var(--c-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.lawn__gallery-arrow svg { width: 20px; height: 20px; }

.lawn__gallery-arrow:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: var(--c-black);
}

.lawn__gallery-arrow--prev { left: 16px; }
.lawn__gallery-arrow--next { right: 16px; }

.lawn__gallery-hud {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lawn__gallery-counter {
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: rgba(29, 29, 31, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--c-white);
    font-size: var(--t-14);
    font-weight: var(--w-black);
    letter-spacing: var(--ls-wide);
    font-variant-numeric: tabular-nums;
}

.lawn__gallery-fs {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(29, 29, 31, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: var(--c-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.lawn__gallery-fs svg { width: 16px; height: 16px; }

.lawn__gallery-fs:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: var(--c-black);
}

.lawn__gallery-tl {
    position: absolute;
    bottom: 76px;
    left: 16px;
    right: 16px;
    z-index: 20;
    height: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lawn__gallery-tl--on {
    opacity: 1;
    pointer-events: auto;
}

.lawn__gallery-tl-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    position: relative;
}

.lawn__gallery-tl-fill {
    height: 100%;
    width: 0%;
    background: var(--c-accent);
    border-radius: 2px;
}

.lawn__gallery-tl-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.lawn__gallery-thumbs {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 4px;
    padding: 6px;
    border-radius: 12px;
    background: rgba(29, 29, 31, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    max-width: calc(100% - 32px);
}

.lawn__gallery-thumbs::-webkit-scrollbar { display: none; }

.lawn__gallery-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 72px;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.lawn__gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.lawn__gallery-thumb:hover img,
.lawn__gallery-thumb--on img { opacity: 1; }

.lawn__gallery-thumb--on { border-color: var(--c-accent); }

.lawn__gallery-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    color: var(--c-white);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

.lawn__gallery-thumb-play svg { width: 100%; height: 100%; }

.lawn__gallery-thumb-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--c-accent);
    transition: none;
    z-index: 5;
}

.lawn__gallery-thumb--on .lawn__gallery-thumb-progress {
    transition: width linear;
}

.lawn__gallery-stage:fullscreen,
.lawn__gallery-stage:-webkit-full-screen {
    border-radius: 0;
    max-height: none;
    height: 100vh;
}

@media (max-width: 768px) {
    .lawn__gallery-stage { height: calc(100vh - 200px); max-height: 400px; }
    .lawn__gallery-arrow { width: 36px; height: 36px; }
    .lawn__gallery-arrow svg { width: 16px; height: 16px; }
    .lawn__gallery-arrow--prev { left: 8px; }
    .lawn__gallery-arrow--next { right: 8px; }
    .lawn__gallery-hud { top: 8px; right: 8px; }
    .lawn__gallery-counter { font-size: 12px; padding: 4px 10px; }
    .lawn__gallery-thumb { width: 56px; }
    .lawn__gallery-thumbs { gap: 3px; padding: 4px; bottom: 8px; }
    .lawn__gallery-tl { bottom: 64px; left: 8px; right: 8px; }
}
