/* Keep the original large screenshot size; additional frames continue to either side. */
.atmosphere {
    --weather-width: min(calc(100vw - var(--gutter) * 2), var(--shell));
    --feature-gap: 22px;
}

.weather-carousel {
    width: 100vw;
    margin-inline: calc((100% - 100vw) / 2);
    padding-block: 7px;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

.weather-carousel.has-multiple { cursor: grab; }
.weather-carousel.is-dragging { cursor: grabbing; }
.weather-carousel.is-dragging .weather-slide { pointer-events: none; }

.weather-slide {
    flex: 0 0 var(--weather-width);
    width: var(--weather-width);
    margin: 0;
    isolation: isolate;
    touch-action: pan-y pinch-zoom;
}

.weather-slide .weather-caption-name {
    font-weight: 500;
}

.weather-slide:focus-visible {
    outline-color: #171717;
    outline-offset: 3px;
}

.weather-slide .weather-image-note {
    margin-left: auto;
}

.weather-gallery-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 24px;
}

.weather-carousel-controls {
    margin: 0;
}

.weather-carousel-controls .icon-button {
    color: #171717;
    border-color: #1717173b;
}

.weather-carousel-controls .icon-button:not(:disabled):hover {
    background: #171717;
    border-color: #171717;
    color: var(--paper);
}

@media (max-width: 800px) {
    .weather-gallery-actions { width: 100%; justify-content: space-between; }
}

@media (max-width: 580px) {
    .atmosphere { --feature-gap: 20px; }
    .weather-carousel-controls {
        flex-basis: auto;
        margin: 0;
    }
    .weather-gallery-actions { flex-wrap: wrap; gap: 18px; }
}

@media print {
    .weather-carousel { width: 100%; margin: 0; overflow: visible; }
    .weather-carousel .feature-carousel-track { transform: none !important; }
    .weather-carousel .feature-carousel-group { flex-wrap: wrap; width: 100%; }
    .weather-carousel [data-carousel-copy],
    .weather-carousel .feature-carousel-group[aria-hidden="true"],
    .weather-carousel-controls { display: none; }
}
