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

/* ---------- Event Section ---------- */
.gallery-event {
    margin-bottom: 72px;
    padding-bottom: 48px;
    border-bottom: 1px solid #e2ddd6;
}

.gallery-event:last-of-type {
    border-bottom: none;
}

.event-meta {
    font-size: 0.88rem;
    color: #5a6478;
    margin-bottom: 12px;
}

.event-date {
    font-weight: 600;
    color: #b35c3a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.event-description {
    font-size: 0.93rem;
    color: #2d3748;
    line-height: 1.8;
    margin-bottom: 28px;
}

/* ---------- Gallery Subtitle ---------- */
.gallery-subtitle {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #b35c3a;
    margin: 28px 0 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2ddd6;
}

/* ---------- Photo Grid ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.gallery-item {
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 27, 45, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 27, 45, 0.12);
}

.gallery-item a {
    display: block;
    line-height: 0;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: opacity 0.2s;
}

.gallery-item:hover img {
    opacity: 0.92;
}

.gallery-caption {
    padding: 12px 14px;
    font-size: 0.82rem;
    color: #4a5568;
    line-height: 1.5;
    border-top: 1px solid #f0ede8;
}

/* ---------- Video ---------- */
.gallery-video {
    margin-bottom: 28px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 27, 45, 0.08);
    background: #000;
}

.gallery-video video {
    width: 100%;
    max-height: 480px;
    display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-item img {
        height: 200px;
    }

    .gallery-video video {
        max-height: 300px;
    }
}

@media (min-width: 701px) and (max-width: 1000px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Video Project Sections ---------- */
.video-project {
    margin-bottom: 32px;
    padding: 20px 24px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #b35c3a;
}

.project-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 6px;
}

.project-desc {
    font-size: 0.88rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 16px;
}

/* ---------- Embedded Video (iframe) ---------- */
.gallery-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(15, 27, 45, 0.08);
}

.gallery-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 700px) {
    .video-project {
        padding: 16px;
        margin-bottom: 24px;
    }
}
