/* Custom styles for Aérogriffons */

/* Utility classes for spacing */
.mt-4 {
    margin-top: 2.5rem !important;
}

.mb-4 {
    margin-bottom: 2.5rem !important;
}

/* OVERRIDE custom_griffons.css max-height constraint */
.header .logo img,
.header .brand-logo img,
.container-header .logo img,
.container-header .brand-logo img,
.cournon-logo img,
.ffam-logo img {
    max-height: none !important;
    height: auto !important;
    box-shadow: none !important;
}

/* Reorganize header to have logos take full height */
.container-header {
    display: grid !important;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
    align-items: stretch !important;
}

/* Logo container - full height of header */
.header .grid-child:first-of-type {
    grid-column: 1;
    grid-row: 1;
    display: flex !important;
    align-items: center !important;
    padding: 1rem !important;
    z-index: 2;
}

/* Menu container - aligned to right */
.header .container-nav {
    grid-column: 2;
    grid-row: 1;
    display: flex !important;
    align-items: flex-end !important;
    padding: 0.5em !important;
}

/* Navbar brand container with both logos */
.header .navbar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 3rem !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Main logo - Griffons */
.header .brand-logo {
    display: flex;
    align-items: center;
}

.header .brand-logo img {
    height: 65px !important;
    width: auto;
    object-fit: contain;
}

/* Cournon d'Auvergne logo - same height as others */
.cournon-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 3rem !important;
    text-align: center;
}

.cournon-logo img {
    height: 65px !important;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 6px;
}

/* FFAM logo - slightly smaller to compensate for padding */
.ffam-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 3rem !important;
    text-align: center;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ffam-logo img {
    height: 57px !important;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* Adjust menu alignment */
.container-header .mod-menu {
    margin-bottom: 0.5rem !important;
}

/* Système de tuiles - Fond transparent, contenu en cartes */

/* Container principal - transparent pour voir le fond */
.container-component {
    background: transparent !important;
    box-shadow: none !important;
    padding: 2rem 1rem !important;
}

.container-component::before {
    display: none !important;
}

/* Wrapper pour le contenu article */
.com-content-article__body {
    background: transparent !important;
}

/* Hero section - Fond gris avec image de Calmato */
.hero-section {
    background:
        linear-gradient(rgba(50, 50, 50, 0.75), rgba(50, 50, 50, 0.75)),
        url('/images/griffons/calmato-hero.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    margin: 0 0 2rem 0 !important;
    padding: 3rem 2.5rem !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

/* Enlever les pseudo-éléments décoratifs du hero */
.hero-section::before,
.hero-section::after {
    display: none !important;
}

/* Hero section - Titre H2 */
.hero-section h2 {
    color: white !important;
    font-size: 2.25rem !important;
    margin-bottom: 1.25rem !important;
    border: none !important;
    padding: 0 !important;
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.hero-section h2::after {
    display: none !important;
}

/* Hero section - Texte lead plus lisible */
.hero-section .lead {
    color: rgba(255, 255, 255, 0.98) !important;
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Masquer les titres H2 en début de page (font doublon avec titre Joomla) */
.com-content-article__body > h2:first-child {
    display: none !important;
}

/* Titres H2 dans hero-section - garder visible */
.hero-section h2 {
    display: block !important;
    color: white !important;
    font-size: 2.25rem !important;
    margin-bottom: 1.25rem !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

.hero-section h2::after {
    display: none !important;
}

/* Autres H2 (pas en premier) - style simple */
.com-content-article__body > h2 {
    color: #0c1222 !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    padding: 0 0 0.5rem 0 !important;
    margin: 2rem 0 1.5rem 0 !important;
    border-bottom: 2px solid #1a56db !important;
}

.com-content-article__body > h2::after {
    display: none !important;
}

/* Titres H3 dans info-box - intégrés */
.info-box h3,
.location-info h3,
.contact-info h3 {
    background: transparent !important;
    color: #0c1222 !important;
    padding: 0 !important;
    margin: 0 0 1rem 0 !important;
    border-left: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
}

/* Paragraphes directement dans body (hors info-box) */
.com-content-article__body > p:not(.lead) {
    background: rgba(255, 255, 255, 0.92) !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(8px) !important;
}

/* Lead paragraphe - style spécial */
.com-content-article__body > p.lead {
    background: rgba(255, 255, 255, 0.92) !important;
    padding: 1.5rem 2rem !important;
    margin-bottom: 2rem !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    font-size: 1.15rem !important;
    backdrop-filter: blur(8px) !important;
}

/* Intro cards container */
.intro-cards {
    margin: 2rem 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Liens des cartes d'activités - cliquables */
.activity-card-link {
    text-decoration: none !important;
    display: block;
    transition: transform 0.3s ease;
}

.activity-card-link:hover {
    transform: translateY(-8px);
}

/* Cartes d'activités - Tuiles blanches */
.activity-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12) !important;
    padding: 1.75rem !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.activity-card-link:hover .activity-card {
    box-shadow: 0 12px 40px rgba(26, 86, 219, 0.25) !important;
    border-color: rgba(26, 86, 219, 0.2) !important;
}

.activity-card h3 {
    color: #0c1222 !important;
    font-size: 1.2rem !important;
    margin-bottom: 0.85rem !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.activity-card p {
    color: #4b5563 !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    flex-grow: 1;
}

/* Action link amélioré dans les cartes */
.card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a56db !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    padding: 0.5rem 1rem;
    background: rgba(26, 86, 219, 0.08);
    border-radius: 8px;
    margin-top: auto;
}

.card-action::after {
    content: '→';
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.activity-card-link:hover .card-action {
    background: rgba(26, 86, 219, 0.15);
    gap: 0.75rem;
}

.activity-card-link:hover .card-action::after {
    transform: translateX(4px);
}

/* Boîte info - Tuiles colorées sans bordure bleue */
.info-box, .highlight-box {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.95) 0%, rgba(224, 247, 250, 0.95) 100%) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1) !important;
    border-left: none !important;
}

/* Contact info card - sans bordure */
.contact-info-card {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.95) 0%, rgba(224, 247, 250, 0.95) 100%) !important;
    backdrop-filter: blur(10px) !important;
    padding: 2rem !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 2rem !important;
    border: none !important;
}

.contact-info-card h3 {
    color: #0c1222 !important;
    font-size: 1.2rem !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.contact-info-card h4 {
    margin-top: 1.5rem !important;
}

.contact-info-card p {
    color: #4b5563 !important;
    line-height: 1.6 !important;
}

/* Location et contact info */
.location-info, .contact-info {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1) !important;
}

/* Contact cards grid - style similaire aux activity cards */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    padding: 2rem !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 86, 219, 0.2) !important;
}

.contact-card h3 {
    color: #0c1222 !important;
    font-size: 1.2rem !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.contact-card p {
    color: #4b5563 !important;
    margin-bottom: 1rem !important;
    line-height: 1.6 !important;
}

.contact-item {
    margin: 1.25rem 0;
    padding: 1rem;
    background: rgba(224, 242, 254, 0.3);
    border-radius: 10px;
    border-left: 3px solid #1a56db;
}

.contact-item strong {
    color: #0c1222;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #0891b2 !important;
}

/* Map container */
.map-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.map-container h3 {
    color: #0c1222 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* News grid - Grille pour les actualités avec système 12 colonnes */
.news-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.news-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    padding: 2rem !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 86, 219, 0.2) !important;
}

.news-card h3 {
    color: #0c1222 !important;
    font-size: 1.2rem !important;
    margin-bottom: 0.75rem !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.news-card .news-date {
    display: inline-block;
    background: rgba(26, 86, 219, 0.1);
    color: #1a56db;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-card p {
    color: #4b5563 !important;
    line-height: 1.6 !important;
    margin-bottom: 0.75rem !important;
}

/* Contact form card */
.contact-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    margin-bottom: 2rem;
}

.contact-form-card h3 {
    color: #0c1222 !important;
    font-size: 1.2rem !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.contact-form-card > p {
    color: #4b5563 !important;
    margin-bottom: 1.5rem !important;
}

/* Form styles */
.griffons-contact-form .form-group {
    margin-bottom: 1.25rem;
}

.griffons-contact-form label {
    display: block;
    font-weight: 600;
    color: #0c1222;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.griffons-contact-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(26, 86, 219, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
}

.griffons-contact-form .form-control:focus {
    outline: none;
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
    background: #ffffff;
}

.griffons-contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.griffons-contact-form .btn-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.griffons-contact-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form messages */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #047857;
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    display: block;
}

/* Listes - En tuiles */
.com-content-article__body > ul,
.com-content-article__body > ol {
    background: rgba(255, 255, 255, 0.92) !important;
    padding: 1.5rem 1.5rem 1.5rem 3rem !important;
    margin: 1.5rem 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(8px) !important;
}

/* Images - Amélioration */
.com-content-article__body img {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}

/* Rows - Pas de background supplémentaire */
.row {
    background: transparent !important;
}

/* Address - Tuile blanche */
address {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

/* Breadcrumb - Modern and discreet */
.breadcrumb {
    background: transparent !important;
    padding: 0.5rem 0 !important;
    margin: 0 0 1rem 0 !important;
    font-size: 0.85rem;
    border: none !important;
    box-shadow: none !important;
}

.breadcrumb-item {
    color: rgba(0, 0, 0, 0.6) !important;
}

.breadcrumb-item a {
    color: rgba(0, 0, 0, 0.75) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: rgba(0, 0, 0, 0.9) !important;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: rgba(0, 0, 0, 0.8) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(0, 0, 0, 0.4) !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    /* Stack vertically on smaller screens */
    .container-header {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .header .grid-child:first-of-type {
        grid-column: 1;
        grid-row: 1;
    }

    .header .container-nav {
        grid-column: 1;
        grid-row: 2;
        align-items: center !important;
    }

    .header .navbar-brand {
        gap: 1.5rem !important;
    }

    .cournon-logo img,
    .ffam-logo img,
    .header .brand-logo img {
        height: 80px;
    }
}

@media (max-width: 768px) {
    .header .navbar-brand {
        gap: 1rem !important;
    }

    .cournon-logo img,
    .ffam-logo img,
    .header .brand-logo img {
        height: 60px;
    }
}

/* Regular news cards - 4 columns each (3 cards per row) */
.news-card:not(.featured-video) {
    grid-column: span 4;
}

/* Featured video card - 9 columns (75% width) */
.news-card.featured-video {
    grid-column: span 9;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25) !important;
    border: 2px solid rgba(255, 215, 0, 0.15) !important;
}

.news-card.featured-video h3 {
    font-size: 1.5rem !important;
    color: #ffd700 !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    font-weight: 700 !important;
}

.news-card.featured-video .news-date {
    background: rgba(255, 215, 0, 0.2) !important;
    color: #ffeb99 !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.85rem !important;
}

.news-card.featured-video p {
    color: #ffffff !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

.news-card.featured-video:hover {
    transform: none !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
}

/* Responsive video container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin: 1rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    border-radius: 12px;
}

/* Responsive adjustments for video card and news grid */
@media (max-width: 991px) {
    /* On tablet, video takes full width, cards take 6 columns (2 per row) */
    .news-card.featured-video {
        grid-column: span 12;
    }

    .news-card:not(.featured-video) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    /* All cards full width on mobile */
    .news-card.featured-video,
    .news-card:not(.featured-video) {
        grid-column: span 12;
    }

    .news-card.featured-video {
        padding: 1.25rem !important;
    }

    .news-card.featured-video h3 {
        font-size: 1.3rem !important;
    }

    .news-card.featured-video p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .news-card.featured-video {
        padding: 1rem !important;
    }

    .news-card.featured-video h3 {
        font-size: 1.15rem !important;
    }

    .news-card.featured-video p {
        font-size: 0.9rem !important;
    }
}

/* ========================================
   AGENDA / CALENDAR STYLES
   ======================================== */

/* Upcoming events container */
#upcoming-events-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    margin-bottom: 2rem;
}

#upcoming-events-container h3 {
    color: #0c1222 !important;
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Upcoming events list */
#upcoming-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* Individual event card */
.event-card {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.6) 0%, rgba(249, 250, 251, 0.6) 100%);
    border-left: 4px solid #1a56db;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(26, 86, 219, 0.2);
    border-left-color: #0891b2;
}

.event-date {
    display: inline-block;
    background: #1a56db;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.event-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0c1222;
    margin-bottom: 0.5rem;
}

.event-time {
    color: #4b5563;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-time::before {
    content: '🕒 ';
}

.event-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Calendar container */
.calendar-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.calendar-container h3 {
    color: #0c1222 !important;
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.google-calendar-embed {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-calendar-embed iframe {
    display: block;
    border: none;
    border-radius: 12px;
}

/* Loading state */
.loading-events {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.loading-events::before {
    content: '⏳ ';
    font-size: 1.5rem;
}

/* No events state */
.no-events {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    background: rgba(249, 250, 251, 0.5);
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #upcoming-events-list {
        grid-template-columns: 1fr;
    }

    #upcoming-events-container,
    .calendar-container {
        padding: 1.5rem;
    }

    .google-calendar-embed iframe {
        height: 500px !important;
    }
}

@media (max-width: 480px) {
    #upcoming-events-container,
    .calendar-container {
        padding: 1rem;
    }

    .google-calendar-embed iframe {
        height: 400px !important;
    }
}

/* ========================================
   GALLERY LIGHTBOX STYLES
   ======================================== */

.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
}

.lightbox-counter {
    color: white;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 3rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 300;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem 1.5rem;
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem 1.5rem;
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 0.3rem 0.8rem;
    }

    .lightbox-close {
        width: 45px;
        height: 45px;
        top: 10px;
        right: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-caption {
        font-size: 0.9rem;
    }
}

