/* Gallery Layout */
.page-header {
    text-align: center;
    padding: 8rem 0 4rem;

}

.page-header .script-text {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.page-header h1 {
    font-size: 3.5rem;
    margin: 0.5rem 0;
}

.page-header p {
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

/* Image Loader */
.image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    animation: gentle-spin 3s linear infinite;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
}

@keyframes gentle-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.gallery-img-container img,
.collage-item img {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.5s ease;
}

.gallery-img-container img.loaded,
.collage-item img.loaded {
    opacity: 1;
}

/* Controls */
.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid transparent;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--color-gold);
    color: var(--color-text-dark);
    background-color: rgba(212, 175, 55, 0.05);
}

.search-bar {
    position: relative;
    width: 300px;
    margin-left: auto;
    /* Push to right if space permits in flex container */
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    /* More space for icon */
    border: 1px solid var(--color-gold);
    /* elegant border default */
    border-radius: 50px;
    /* Pill shape */
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-text-dark);
}

.search-bar input::placeholder {
    color: #999;
    font-style: italic;
    font-family: var(--font-heading);
    /* Slight serif feel for placeholder */
}

.search-bar input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
    /* Soft gold glow */
    border-color: var(--color-gold);
}

.search-icon {
    position: absolute;
    left: 15px;
    /* Adjust for pill shape padding */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    color: var(--color-gold);
    /* Gold icon */
    display: flex;
    /* Fix vertical alignment */
    align-items: center;
    pointer-events: none;
    /* Let clicks pass through to input */
}

/* Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background: white;
    box-shadow: var(--shadow-soft);
    border-radius: 4px;
    /* Slight rounded corners */
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-img-container {
    height: 300px;
    background-color: #f0f0f0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img-container img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 1.5rem;
    text-align: center;
}

.gallery-info h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.gallery-info p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    opacity: 0.8;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 20005;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    animation: fadeIn 0.3s;
}

.lightbox-content img {
    margin: 0 auto;
    border: 2px solid var(--color-gold);
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Mobile */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .page-header {
        padding: 8rem 0 2rem;
        /* Increased padding to clear fixed header */

    }

    .page-header .script-text {
        font-size: 2.5rem;
        /* Smaller script text */
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-controls {
        flex-direction: column;
        align-items: stretch;
        /* Stretch to fill */
        gap: 1.5rem;
    }

    .filter-buttons {
        justify-content: center;
        /* Center buttons */
    }

    .search-bar {
        width: 100%;
        margin: 0;
        /* Remove auto margins */
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        /* Single column on very small screens */
        gap: 1.5rem;
    }

    .gallery-info h3 {
        font-size: 1.5rem;
    }
}

/* Custom Live Events View */
.live-event-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-bottom: 3rem;
}

.live-event-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.live-event-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent-pink);
}

.live-event-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.live-event-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.live-event-tags span {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.live-event-collage {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.collage-item {
    position: relative;
    height: 300px;
    /* Uniform height for collage feel */
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collage-item:hover img {
    transform: scale(1.1);
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collage-item:hover .hover-overlay {
    opacity: 1;
}

.hover-overlay span {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
}

/* Contact Modal */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 20010;
    /* Above lightbox */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.contact-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 3rem 2rem;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.close-contact {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-contact:hover {
    color: var(--color-text-dark);
}

.contact-header h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.contact-header p {
    font-size: 1rem;
    /* Reset font size from general rules */
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.contact-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: var(--color-ivory);
}

.contact-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--color-gold);
    background: #fff;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.contact-option-card:hover .icon-box {
    transform: scale(1.1);
}

.icon-box.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.icon-box.email {
    background: linear-gradient(135deg, #D4AF37, #B08D55);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.icon-box.form {
    background: linear-gradient(135deg, #FFB7C5, #E598A8);
    box-shadow: 0 4px 10px rgba(255, 183, 197, 0.3);
}

.contact-option-card span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text-dark);
    font-weight: 500;
}

@media (max-width: 768px) {
    .contact-options {
        grid-template-columns: 1fr;
    }

    /* Compact Mobile Cards */
    .contact-option-card {
        flex-direction: row;
        padding: 1rem;
        gap: 1rem;
        justify-content: flex-start;
    }

    .icon-box {
        margin-bottom: 0;
        width: 40px;
        height: 40px;
    }

    .contact-option-card span {
        font-size: 1.1rem;
    }
}