/* Page Background */
body.template-homepage {
    background-color: #bdcdda;
    margin: 0;
    padding: 0;
}

/* Hero Section with Overlay */
.hero-section {
    position: relative;
    width: 100%;
    height: 1279px;
    margin: 0 0 -930px 0;
}

/* Hero Background Section */
.hero-background {
    width: 100%;
    height: 100%;
    background-image: url('/static/images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Intro Text Overlay */
.intro {
    position: absolute;
    top: calc(50% - 450px);
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 1000px;
    font-size: 4.5rem;
    color: #C41E3A;
    font-weight: 700;
    font-family: 'Mountains of Christmas', cursive;
    line-height: 1.2;
    text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.9),
                 0 0 20px rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.intro p {
    margin: 0;
}

.intro br {
    display: block;
    content: "";
    margin-top: 0.5em;
}

/* Alternative holiday fonts you can try:
   font-family: 'Mountains of Christmas', cursive;  (festive, snowy)
   font-family: 'Dancing Script', cursive;          (elegant script)
   font-family: 'Great Vibes', cursive;             (fancy script)
   font-family: 'Playfair Display', serif;          (classic elegant)
*/

/* Gallery Container */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

/* Gallery Grid - Masonry Layout with 3 Columns Centered */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
    padding: 20px 0;
    margin: 0 auto;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Overlay with Text */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-text {
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-text {
    transform: translateY(0);
}

/* Responsive Design - Keep 3 columns on desktop, adjust for mobile */
@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 15px;
    }

    .gallery-text {
        font-size: 1rem;
        padding: 15px;
    }

    .gallery-container {
        padding: 20px 15px;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
        column-gap: 0;
    }

    .gallery-container {
        padding: 10px;
    }

    .gallery-item {
        margin-bottom: 15px;
    }
}
