/* --- Album Page Redesign --- */

/* Album Hero Section */
.album-hero-section {
  position: relative;
  height: 100vh; /* Full viewport height */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.album-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4); /* Darken background image */
  z-index: 0;
}

.album-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 70%);
  z-index: 1;
}

.album-hero-content {
  position: relative;
  z-index: 2;
}

.album-hero-section .small {
  color: var(--gold) !important;
}

.album-hero-section .display-3 {
  font-family: 'Hind', sans-serif;
  font-weight: 800;
  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.album-hero-section .lead {
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* --- Event Gallery Styles --- */
.gallery-title {
    font-size: 40px;
    font-weight: bold;
    color: #1d3557; /* Dark blue from requested UI */
    margin-bottom: 10px;
}

.gallery-subtitle {
    font-size: 18px;
    color: #1d3557;
    margin-bottom: 30px;
    font-weight: normal;
    opacity: 0.8;
}

/* Gallery Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    grid-auto-flow: dense;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background-color: #f8f9fa;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.featured { grid-column: span 2; grid-row: span 2; }

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    z-index: 10;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

/* Glassmorphism Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-number {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .overlay-number {
    transform: translateY(0);
}

/* Responsive Grid */
@media (max-width: 991px) {
    .gallery-grid { 
        grid-template-columns: repeat(3, 1fr); 
        grid-auto-rows: 240px; /* Adjusted height for 3-column layout */
    }
}

@media (max-width: 767px) {
    .gallery-grid { 
        grid-template-columns: repeat(2, 1fr); 
        grid-auto-rows: 180px; /* Adjusted height for 2-column layout */
        gap: 12px; /* Tighter gap for mobile devices */
    }
    .gallery-title { font-size: 28px; }
}

/* External Media Card */
.external-media-card {
    background: #fff;
    border-radius: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.external-media-card:hover {
    transform: translateY(-5px);
}

/* Scroll Indicator (reused from main.css) */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-indicator .mouse { width: 30px; height: 50px; border: 2px solid #fff; border-radius: 20px; position: relative; margin-bottom: 10px; }
.scroll-indicator .wheel { width: 4px; height: 8px; background: #fff; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); border-radius: 2px; animation: scrollWheel 1.5s infinite; }
@keyframes scrollWheel { 0% { top: 10px; opacity: 1; height: 8px; } 100% { top: 30px; opacity: 0; height: 4px; } }
.scroll-indicator .arrow-scroll { margin-top: 5px; }
.scroll-indicator .arrow-scroll span { display: block; width: 10px; height: 10px; border-bottom: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg); margin: -5px auto; animation: scrollArrow 2s infinite; }
.scroll-indicator .arrow-scroll span:nth-child(2) { animation-delay: -0.2s; }
.scroll-indicator .arrow-scroll span:nth-child(3) { animation-delay: -0.4s; }
@keyframes scrollArrow { 0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); } 50% { opacity: 1; } 100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); } }