/* ==============================
   Gallery Page Styles
   ============================== */

/* Gallery Hero */
.gallery-hero {
    padding: 50px 0 0;
}

.gallery-hero__image {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.gallery-main-graphic {
    width: 100%;
}

.gallery-title {
    font-family: 'Boldstrom', sans-serif;
    font-size: 28pt;
    color: var(--text-black);
    margin: 15px 0 5px;
    text-transform: uppercase;
    line-height: 1.1;
    white-space: nowrap;
}

.gallery-subtitle {
    font-family: 'Boldstrom', sans-serif;
    font-size: 9pt;
    color: var(--text-gray);
    margin: 0 0 20px;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Nav Buttons */
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Boldstrom', sans-serif;
    font-size: 14pt;
    color: #fff;
    background: linear-gradient(to bottom, #ffb347, #ff9d33);
    border: 3px solid var(--border-yellow);
    border-radius: 100px;
    padding: 8px 22px;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 1;
}

.nav-icon {
    height: 1em;
    width: auto;
    display: inline;
}

/* Gallery Section Header Override */
.gallery-header {
    margin: 10px 0 15px;
}

.coop-gallery-img {
    max-width: 420px;
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 1;
}

.event-video-title {
    font-family: 'Boldstrom', sans-serif;
    color: var(--brand-orange);
    font-size: 16pt;
    margin: 0;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow:
        -1px -1px 0 var(--brand-green),
        1px -1px 0 var(--brand-green),
        -1px 1px 0 var(--brand-green),
        1px 1px 0 var(--brand-green);
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 600px;
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: zoom-in;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.photo-grid img:hover {
    transform: scale(1.02);
    opacity: 0.92;
}

/* Load More */
.load-more-wrap {
    text-align: center;
    margin: 25px 0 35px;
}

.load-more-btn {
    background-color: var(--brand-orange);
    border: 3px solid var(--border-yellow);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.camera-emoji {
    margin-left: 4px;
}

/* Video Section */
.video-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 35px;
    text-align: center;
}

.video-section video {
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    margin-top: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Bottom Section */
.gallery-bottom {
    padding: 30px 20px 50px;
    text-align: center;
}

.back-btn {
    margin-bottom: 15px;
}

.follow-text {
    font-family: 'Boldstrom', sans-serif;
    font-size: 10pt;
    color: var(--text-black);
    text-transform: uppercase;
    margin-top: 10px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
}

.lightbox.open {
    display: flex;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 2px solid var(--border-yellow);
    cursor: pointer;
    font-family: 'Boldstrom', sans-serif;
    line-height: 1;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--brand-orange);
    transform: scale(1.05);
}

.lightbox-close {
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 26pt;
    padding: 0;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    font-size: 18pt;
    padding: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Boldstrom', sans-serif;
    font-size: 12pt;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 100px;
}

/* ==============================
   Responsive - Tablet (768px)
   ============================== */
@media (max-width: 768px) {
    .gallery-title { font-size: 22pt; }
    .gallery-subtitle { font-size: 8pt; }
    .nav-btn { font-size: 12pt; padding: 7px 18px; }
    .coop-gallery-img { max-width: 340px; }
    .event-video-title { font-size: 14pt; }
    .photo-grid { gap: 6px; }
    .load-more-btn { font-size: 12pt; }
    .back-btn { font-size: 12pt; }
    .follow-text { font-size: 8pt; }
    .video-section video { max-height: 65vh; }
}

/* ==============================
   Responsive - Mobile (480px)
   ============================== */
@media (max-width: 480px) {
    .gallery-hero { padding: 30px 0 0; }
    .gallery-title { font-size: 16pt; }
    .gallery-subtitle { font-size: 7pt; }
    .gallery-nav { gap: 10px; }
    .nav-btn { font-size: 10pt; padding: 6px 14px; border-width: 2px; }
    .coop-gallery-img { max-width: 260px; }
    .event-video-title { font-size: 11pt; }
    .photo-grid { gap: 4px; }
    .load-more-btn { font-size: 10pt; padding: 8px 18px; }
    .video-section video { border-radius: 8px; max-height: 75vh; width: 85%; }
    .back-btn { font-size: 10pt; padding: 8px 18px; }
    .follow-text { font-size: 7pt; }
    .lightbox { padding: 20px 10px; }
    .lightbox-close { width: 36px; height: 36px; font-size: 20pt; top: 10px; right: 10px; }
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 14pt; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-counter { font-size: 10pt; bottom: 10px; }
}
