/*
 * gallery.css — Volant Technologies Event Archive
 * ─────────────────────────────────────────────────────────────────────────────
 * EXCLUSIVE to gallery.html. Contains ALL gallery-specific styles.
 * Shared variables (--volant-glass, --volant-cyan, etc.) are defined in style2.css.
 * Modal + hero classes (.gallery-modal, .volant-archive-*) come from style2.css.
 * This file only ADDS gallery grid/card/skeleton styles that no other page uses.
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* ══════════════════════════════════════════════════════════════════════════════
   GLOBAL BUTTON RESET — isolate the style.css `button` rule from gallery buttons
   ══════════════════════════════════════════════════════════════════════════════ */
.vg-btn,
.vg-btn:hover,
.vg-btn:focus {
    padding: 6px 0;
    border-radius: 0;
    background: transparent;
    color: var(--volant-cyan);
    font-weight: 700;
    font-size: 14px;
    border: none;
}

/* ══════════════════════════════════════════════════════════════════════════════
   GALLERY SECTION WRAPPER
   ══════════════════════════════════════════════════════════════════════════════ */
.vg-section {
    padding: 0 0 80px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   GRID CONTAINER
   ══════════════════════════════════════════════════════════════════════════════ */
.vg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    width: 100%;
    margin-top: 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   EVENT CARD
   ══════════════════════════════════════════════════════════════════════════════ */
.vg-card {
    background: var(--volant-glass);
    border: 1px solid var(--volant-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform     0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow    0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color  0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    /* Prevent broken layout during skeleton */
    min-height: 0;
}

.vg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 25px var(--volant-glow);
    border-color: rgba(103, 232, 249, 0.3);
}

/* ══════════════════════════════════════════════════════════════════════════════
   COVER STRIP  (16:9 aspect-ratio banner at top of card)
   ══════════════════════════════════════════════════════════════════════════════ */
.vg-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.vg-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition:
        opacity   0.4s ease,
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vg-cover img.loaded { opacity: 1; }
.vg-card:hover .vg-cover img { transform: scale(1.04); }

/* ══════════════════════════════════════════════════════════════════════════════
   YEAR BADGE  (overlaid on the cover)
   ══════════════════════════════════════════════════════════════════════════════ */
.vg-year-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(5, 18, 34, 0.82);
    border: 1px solid rgba(103, 232, 249, 0.28);
    border-radius: 10px;
    padding: 4px 14px;
    font-size: 22px;
    font-weight: 800;
    color: var(--volant-cyan);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CARD BODY
   ══════════════════════════════════════════════════════════════════════════════ */
.vg-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vg-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.vg-location {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}

.vg-location i { color: var(--volant-gold); font-size: 12px; }

/* ══════════════════════════════════════════════════════════════════════════════
   PREVIEW THUMBNAIL STRIP  (up to 4 squares)
   ══════════════════════════════════════════════════════════════════════════════ */
.vg-previews {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 18px;
}

.vg-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    position: relative;
}

.vg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition:
        opacity   0.35s ease,
        transform 0.4s  cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.vg-thumb img.loaded { opacity: 1; }
.vg-thumb:hover img  { transform: scale(1.07); }

/* "+N more" overlay on the 4th thumbnail */
.vg-thumb-more {
    position: absolute;
    inset: 0;
    background: rgba(4, 19, 31, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    border-radius: 8px;
    backdrop-filter: blur(3px);
    pointer-events: none;
    user-select: none;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CARD FOOTER
   ══════════════════════════════════════════════════════════════════════════════ */
.vg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 4px;
}

.vg-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.vg-btn {
    background: transparent;
    border: none;
    color: var(--volant-cyan);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 0;
    transition: color 0.3s ease;
    font-family: var(--volant-font);
    border-radius: 0;
    line-height: 1;
}

.vg-btn i { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.vg-btn:hover { color: #ffffff; background: transparent; }
.vg-btn:hover i { transform: translateX(5px); }

/* ══════════════════════════════════════════════════════════════════════════════
   SKELETON SHIMMER  (shown while images load)
   ══════════════════════════════════════════════════════════════════════════════ */
.vg-card.skeleton .vg-cover,
.vg-card.skeleton .vg-thumb {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 25%,
        rgba(255, 255, 255, 0.09) 50%,
        rgba(255, 255, 255, 0.04) 75%
    );
    background-size: 200% 100%;
    animation: vgShimmer 1.6s infinite;
}

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

/* ══════════════════════════════════════════════════════════════════════════════
   ERROR / EMPTY STATES
   ══════════════════════════════════════════════════════════════════════════════ */
.vg-error {
    grid-column: 1 / -1;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 16px;
    padding: 48px 36px;
    text-align: center;
    color: #fca5a5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    font-size: 16px;
}

.vg-error h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fca5a5;
    margin: 0;
}

.vg-error p {
    color: rgba(252, 165, 165, 0.8);
    margin: 0;
    line-height: 1.6;
}

.vg-error code {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9em;
}

.vg-error-note {
    color: #facc15;
    font-size: 0.88em;
    font-weight: 600;
    background: rgba(250, 204, 21, 0.06);
    border: 1px solid rgba(250, 204, 21, 0.15);
    border-radius: 10px;
    padding: 10px 18px;
    max-width: 560px;
    line-height: 1.5;
}

.vg-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 17px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════════════════════ */

/* Tablet – 2 columns */
@media (max-width: 1100px) {
    .vg-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* Large mobile – still 2 columns, tighter gap */
@media (max-width: 768px) {
    .vg-grid     { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .vg-title    { font-size: 17px; }
    .vg-body     { padding: 16px 16px 18px; }
    .vg-previews { gap: 4px; margin-bottom: 14px; }
}

/* Small mobile – single column */
@media (max-width: 540px) {
    .vg-grid     { grid-template-columns: 1fr; gap: 18px; }
    .vg-previews { grid-template-columns: repeat(4, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════════════════
   HERO PADDING OVERRIDE (only for gallery page)
   ══════════════════════════════════════════════════════════════════════════════ */
.volant-archive-core-container { padding-top: 140px !important; }
