/* Hero Banner */
.hero-banner {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-top: 20vh;
}

.hero-banner::before, .hero-banner::after { content: none !important; background: transparent !important; }
.hero-banner { background-color: transparent; }
.hero-overlay::before, .hero-overlay::after { content: none !important; background: transparent !important; }

.hero-overlay {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.hero-overlay::before {
    content: none;
}

.hero-overlay::after {
    content: none;
}

.hero-content {
    text-align: center;
    color: #ffffff;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #ff0000;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* Gallery Sections */
.gallery-section {
    padding: 40px 0 80px;
}

.hero-overlay > .gallery-section { width: 100%; }

.gallery-section .container {
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    max-width: 1400px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 32px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(450px, 1fr));
    gap: 32px;
}

.gallery-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 8px;
}

.gallery-card .media {
    background: #e9eaec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    width: 100%;
    aspect-ratio: 4 / 3; /* horizontal rectangle for photos */
}

.gallery-card .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-card .media a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.gallery-card .media a:hover {
    text-decoration: none;
    color: inherit;
}

/* Video play overlay */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.gallery-card .media a:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-card .media {
    position: relative;
}

.gallery-card.tall .media { aspect-ratio: 4 / 3; }
.gallery-card.wide .media { aspect-ratio: 4 / 3; }

/* Make video cards a bit wider (16:9) */
.video-grid .gallery-card .media { aspect-ratio: 16 / 9; }

.gallery-card .caption {
    background: #ffffff;
    padding: 14px 16px;
    border-top: 1px solid #e5e5e5;
    color: #394150;
    text-align: center;
}

.placeholder {
    font-weight: 500;
}

/* No galleries message */
.no-galleries {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2rem;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .gallery-grid { grid-template-columns: repeat(3, minmax(260px, 1fr)); }
    .video-grid { grid-template-columns: repeat(2, minmax(420px, 1fr)); }
}

@media (max-width: 992px) {
    .gallery-section .container { padding: 0 14px; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
    .video-grid { grid-template-columns: repeat(2, minmax(300px, 1fr)); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .gallery-section .container { padding: 0 20px; }
    .gallery-grid { gap: 24px; grid-template-columns: repeat(2, minmax(200px, 1fr)); }
    .video-grid { grid-template-columns: repeat(2, minmax(200px, 1fr)); }

}

@media (max-width: 576px) {
    .gallery-section .container { padding: 0 30px; }
    .gallery-grid { gap: 24px; grid-template-columns: repeat(1, minmax(200px, 1fr)); }
    .video-grid { grid-template-columns: repeat(1, minmax(200px, 1fr)); }

}