/* ------------------------------------------GALLERY PAGE SPECIFIC STYLES------------------------------------------ */

/* Gallery Banner */
.gallery-banner {
  
    background-image:    url('../images/emergency-photo.webp'); 
   background-size: cover;
    background-position: center;
    height: 40vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--color-text-light);
}

.gallery-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}
.gallery-banner h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.subtitle {
    /* Adjusted for consistency */
    font-size: 1.1em; 
    color: #ffffff;
    font-weight: 300;
    margin-top: 0;
    max-width: 80%;
    line-height: 1.5;
    z-index: 10;
}

/* Memorable Moments Section */
.memorable-moments-section {
    font-family: Arial, sans-serif;
    padding: 60px 20px;
    background-color: #f8f8f8;
    text-align: center;
}

.title-container {
    margin-bottom: 40px;
}

.title-container h1 {
    /* Consistent with section-title in style.css */
    font-size: 2.2rem; 
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
}

.title-container .highlight {
    color: #ff6347; 
    font-weight: 600;
}

.title-container .underline {
    width: 60px;
    height: 3px;
    background-color: #ff6347;
    margin: 0 auto;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.image-wrapper {
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    padding-bottom: 66.66%; /* Maintains a 3:2 aspect ratio for images */
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.card:hover .image-wrapper img {
    transform: scale(1.05);
}

.caption {
    margin-top: 15px;
    /* Adjusted for consistency */
    font-size: 1.05rem; 
    color: #333;
    font-weight: 600;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .gallery-banner {
        min-height: 300px;
    }
    .main-title {
        font-size: 2.5em;
    }
    .cards-container {
        /* Switch to single column stack on mobile/tablet */
        grid-template-columns: 1fr;
        gap: 20px;
    }
}