 :root {
     --red: #DA2128;
     --red-dark: #A8151B;
     --red-deeper: #7A0E12;
     --yellow: #FFC300;
     --yellow-hot: #FFD84A;
     --white: #FFFFFF;
 }
 *,
 *::before,
 *::after {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 :root {
     --red: #DA2128;
     --red-dark: #A8151B;
     --red-deeper: #7A0E12;
     --yellow: #FFC300;
     --yellow-hot: #FFD84A;
     --white: #FFFFFF;
 }


 /* Neutralise any Bootstrap utility classes that might be on the wrapper */
 .gallery-hero.py-5 {
     padding-top: 0 !important;
     padding-bottom: 0 !important;
 }

 .gallery-hero.mb-5 {
     margin-bottom: 0 !important;
 }

 /* ── GALLERY HERO ──────────────────────────────────────────────── */
 /* Yellow-dominant for gallery — reversed from contact */
 .gallery-hero {
     position: relative;
     min-height: 480px;
     display: flex;
     align-items: center;
     overflow: hidden;
     background: var(--yellow);
     margin: 0;
     padding: 0;
 }

 /* Diagonal red slab — from left bottom to right top */
 .g-slash-red {
     position: absolute;
     top: -15%;
     left: -5%;
     width: 50%;
     height: 140%;
     background: var(--red);
     transform: skewX(-7deg);
     z-index: 1;
 }

 .g-slash-red::before {
     content: '';
     position: absolute;
     inset: 0;
     background: repeating-linear-gradient(-45deg,
             rgba(255, 255, 255, .05) 0px, rgba(255, 255, 255, .05) 2px,
             transparent 2px, transparent 20px);
 }

 /* Dark accent between slabs */
 .g-accent {
     position: absolute;
     top: -15%;
     left: calc(45% - 5px);
     width: 10px;
     height: 140%;
     background: var(--red-deeper);
     transform: skewX(-7deg);
     z-index: 2;
 }

 /* Dot grid on yellow side */
 .g-dots {
     position: absolute;
     inset: 0;
     z-index: 0;
     background-image: radial-gradient(circle, rgba(168, 21, 27, .12) 1.5px, transparent 1.5px);
     background-size: 26px 26px;
 }

 /* Red bottom rule */
 .g-rule {
     position: absolute;
     bottom: 0;
     left: 0;
     width: 100%;
     height: 6px;
     background: var(--red);
     z-index: 5;
 }

 /* Content — right side (on yellow) */
 .g-body {
     position: relative;
     z-index: 4;
     margin-left: auto;
     padding: 64px 6% 90px 3%;
     max-width: 580px;
 }

 .g-tag {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     background: var(--red);
     color: var(--white);
     font-family: 'Barlow Condensed', sans-serif;
     font-weight: 800;
     font-size: .68rem;
     letter-spacing: .22em;
     text-transform: uppercase;
     padding: 5px 18px 4px 14px;
     margin-bottom: 18px;
     /* reverse notch direction */
     clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
     animation: tagIn .5s cubic-bezier(.34, 1.56, .64, 1) both;
 }

 @keyframes tagIn {
     from {
         opacity: 0;
         transform: translateX(24px);
     }

     to {
         opacity: 1;
         transform: translateX(0);
     }
 }

 .g-title {
     font-family: 'Bebas Neue', sans-serif;
     font-size: clamp(3.4rem, 7.5vw, 5.6rem);
     line-height: .92;
     color: var(--red-dark);
     letter-spacing: .03em;
     animation: riseUp .5s .1s cubic-bezier(.22, 1, .36, 1) both;
 }

 .g-title .wt {
     color: var(--white);
     -webkit-text-stroke: 2px var(--red-dark);
 }

 .g-sub-title {
     font-family: 'Bebas Neue', sans-serif;
     font-size: clamp(3.4rem, 7.5vw, 5.6rem);
     line-height: .92;
     color: var(--red-dark);
     letter-spacing: .03em;
     margin-bottom: 22px;
     animation: riseUp .5s .18s cubic-bezier(.22, 1, .36, 1) both;
 }

 .g-bar {
     width: 56px;
     height: 5px;
     background: var(--red);
     margin-bottom: 18px;
     animation: barGrow .45s .28s ease both;
 }

 @keyframes barGrow {
     from {
         width: 0;
         opacity: 0;
     }

     to {
         width: 56px;
         opacity: 1;
     }
 }

 .g-desc {
     font-size: 1rem;
     font-weight: 400;
     color: var(--red-deeper);
     line-height: 1.7;
     max-width: 370px;
     margin-bottom: 34px;
     animation: riseUp .5s .26s cubic-bezier(.22, 1, .36, 1) both;
 }

 .g-ctas {
     display: flex;
     gap: 12px;
     flex-wrap: wrap;
     animation: riseUp .5s .34s cubic-bezier(.22, 1, .36, 1) both;
 }

 .btn-fill-r {
     font-family: 'Barlow Condensed', sans-serif;
     font-weight: 800;
     font-size: .95rem;
     letter-spacing: .1em;
     text-transform: lowercase;
     color: var(--white);
     background: var(--red);
     border: none;
     padding: 14px 32px;
     clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
     text-decoration: none;
     display: inline-flex;
     align-items: center;
     gap: 8px;
     transition: background .15s, transform .15s;
     cursor: pointer;
 }

 .btn-fill-r:hover {
     background: var(--red-dark);
     transform: translateY(-3px);
     color: var(--white);
 }
/* 🔴 Disable any JS scroll animation applied inline */
.gallery-hero {
    transform: none !important;
    opacity: 1 !important;
}

/* Also protect children from animation inheritance */
.gallery-hero * {
    animation-play-state: running;
}
 .btn-outline-r {
     font-family: 'Barlow Condensed', sans-serif;
     font-weight: 700;
     font-size: .95rem;
     letter-spacing: .1em;
     text-transform: lowercase;
     color: #ff000a;
     border-radius: 50px;
     background: transparent;
     border: 2.5px solid rgb(255 0 10);
     padding: 12px 28px;
     text-decoration: none;
     display: inline-flex;
     align-items: center;
     gap: 8px;
     transition: border-color .15s, background .15s, transform .15s;
     cursor: pointer;
 }

 .btn-outline-r:hover {
     border-color: var(--red-dark);
     background: rgba(168, 21, 27, .08);
     transform: translateY(-3px);
     color: var(--red-dark);
 }

 /* Left side visual in red area */
 .g-visual {
     position: absolute;
     left: 3%;
     top: 50%;
     transform: translateY(-50%) skewX(-7deg);
     z-index: 3;
     text-align: center;
     pointer-events: none;
 }

 .g-visual .emoji {
     font-size: 7.5rem;
     line-height: 1;
     display: block;
     animation: float 3s ease-in-out infinite;
     filter: drop-shadow(3px 6px 0 rgba(0, 0, 0, .2));
 }

 @keyframes float {

     0%,
     100% {
         transform: translateY(0) skewX(7deg);
     }

     50% {
         transform: translateY(-12px) skewX(7deg);
     }
 }

 .g-visual .vl {
     font-family: 'Bebas Neue', sans-serif;
     font-size: 1.3rem;
     color: var(--yellow);
     letter-spacing: .12em;
     margin-top: 10px;
     display: block;
 }

 @keyframes riseUp {
     from {
         opacity: 0;
         transform: translateY(26px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .g-wave {
     position: absolute;
     bottom: -1px;
     left: 0;
     width: 100%;
     z-index: 5;
     line-height: 0;
 }

 .g-wave svg {
     display: block;
     width: 100%;
 }

/* Filter Section */
.filter-section {
    animation: slideDown 0.5s ease-out;
}

.filter-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 2rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    background: white;
}

.filter-btn:hover {
    border-color: #ea6666;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #ff0000 0%, #ff4444 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.gallery-count {
    font-size: 0.95rem;
    animation: fadeIn 0.5s ease-out;
}

/* Gallery Grid */
#galleryGrid {
    min-height: 400px;
}

.gallery-item {
    animation: fadeInUp 0.5s ease-out backwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.2s; }

/* Gallery Card */
.gallery-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Image Wrapper */
.image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
    display: block;
    opacity: 1 !important; /* Force visibility */
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}
/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    padding: 1rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-card:hover .overlay-content {
    transform: translateY(0);
}

.zoom-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    transform: scale(1.1);
    background: #fff !important;
}

/* Card Caption */
.card-caption {
    padding: 1rem;
    background: white;
    flex-grow: 1;
}

.card-caption h6 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Modal Styling */
.modal-content {
    background: rgb(0 0 0 / 43%) !important;
}

.modal-body img {
    max-height: 80vh;
    object-fit: contain;
}

/* Empty State */
.empty-state i {
    opacity: 0.3;
}

/* Load More Button */
.load-more-btn {
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-delay {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

/* Responsive Design */
@media (max-width: 991px) {
    .gallery-hero {
        margin: 0;
        border-radius: 1rem;
    }
}

@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .filter-section {
        padding: 0 0.5rem;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    
    .image-overlay {
        opacity: 1;
        background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    }
    
    .overlay-content {
        transform: translateY(0);
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.75rem;
    }
    
    .zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .col-6 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card-caption {
        padding: 0.75rem;
    }
    
    .card-caption h6 {
        font-size: 0.85rem;
    }
}

/* Loading State */
.gallery-item.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Accessibility */
.zoom-btn:focus,
.filter-btn:focus {
    outline: 2px solid #ea6666;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .filter-section,
    .gallery-hero,
    .load-more-btn {
        display: none;
    }
    
    .gallery-card {
        break-inside: avoid;
    }
}
