.gacs-gallery-masonry {
    columns: 1;
    column-gap: 1rem;
}

@media (min-width: 640px) {
    .gacs-gallery-masonry { columns: 2; }
}

@media (min-width: 1024px) {
    .gacs-gallery-masonry { columns: 3; }
}

@media (min-width: 1280px) {
    .gacs-gallery-masonry { columns: 4; }
}

.gacs-gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.gacs-gallery-card {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.35s ease;
}

.gacs-gallery-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 28px 80px -48px rgba(14, 165, 233, 0.35);
}

.gacs-gallery-card__media {
    position: relative;
    overflow: hidden;
}

.gacs-gallery-card__media img {
    width: 100%;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gacs-gallery-card:hover .gacs-gallery-card__media img {
    transform: scale(1.06);
}

.gacs-gallery-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    height: 3.5rem;
    width: 3.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.gacs-gallery-card:hover .gacs-gallery-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(14, 165, 233, 0.55);
}

.gacs-gallery-tabs button.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(56, 189, 248, 0.45);
}

.gacs-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    flex-direction: column;
    background: rgba(5, 8, 16, 0.96);
    backdrop-filter: blur(12px);
}

.gacs-gallery-lightbox.is-open {
    display: flex;
}

.gacs-gallery-lightbox__stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 1rem;
}

.gacs-gallery-lightbox__stage img,
.gacs-gallery-lightbox__stage iframe {
    max-height: min(85vh, 900px);
    max-width: 100%;
    border-radius: 0.5rem;
}

.gacs-gallery-lightbox__stage img {
    object-fit: contain;
}

.gacs-gallery-lightbox__stage iframe {
    width: min(96vw, 1100px);
    aspect-ratio: 16 / 9;
    height: auto;
}

.gacs-moments-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
}

.gacs-moments-track > * {
    flex: 0 0 min(78vw, 280px);
    scroll-snap-align: start;
}

.gacs-gallery-skeleton {
    animation: gacsGalleryPulse 1.4s ease-in-out infinite;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
}

@keyframes gacsGalleryPulse {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
