/* =============================
   HERO GALERI
============================= */
.hero-section-gallery {
    position: relative;
    height: 350px;
    margin-top: 70px;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-color-hover) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
}

#hero-canvas-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: block;
}

.gallery-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    animation: galleryBlobDrift 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.gallery-blob-1 {
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.08);
    top: -80px;
    left: -60px;
    animation-duration: 12s;
}

.gallery-blob-2 {
    width: 220px;
    height: 220px;
    background: rgba(244, 196, 48, 0.1);
    bottom: -60px;
    right: -40px;
    animation-duration: 9s;
    animation-delay: -4s;
}

.gallery-blob-3 {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.05);
    top: 35%;
    right: 12%;
    animation-duration: 14s;
    animation-delay: -7s;
}

@keyframes galleryBlobDrift {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(15px, -20px) scale(1.05);
    }
    66% {
        transform: translate(-12px, 15px) scale(0.97);
    }
}

.gallery-corner {
    position: absolute;
    width: 52px;
    height: 52px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.gallery-corner-tl {
    top: 28px;
    left: 28px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.9);
    border-left: 1.5px solid rgba(255, 255, 255, 0.9);
}

.gallery-corner-tr {
    top: 28px;
    right: 28px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.9);
    border-right: 1.5px solid rgba(255, 255, 255, 0.9);
}

.gallery-corner-bl {
    bottom: 48px;
    left: 28px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.9);
    border-left: 1.5px solid rgba(255, 255, 255, 0.9);
}

.gallery-corner-br {
    bottom: 48px;
    right: 28px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.9);
    border-right: 1.5px solid rgba(255, 255, 255, 0.9);
}

.hero-content-gallery {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 24px 32px 0;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
    animation: galleryFadeUp 0.7s ease both;
}

.hero-eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f4c430;
    flex-shrink: 0;
    animation: galleryEyebrowDotPulse 2s ease-in-out infinite;
}

@keyframes galleryEyebrowDotPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.6);
    }
}

.hero-title-gallery {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    font-family: "Amiri", serif;
    text-shadow: 0 2px 12px rgba(100, 20, 0, 0.2);
    animation: galleryFadeUp 0.7s 0.12s ease both;
}

.hero-subtitle-gallery {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
    line-height: 1.6;
    animation: galleryFadeUp 0.7s 0.22s ease both;
}

.hero-gallery-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
    animation: galleryFadeUp 0.7s 0.32s ease both;
}

.hero-gallery-ornament-line {
    height: 1px;
    width: 52px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
}

.hero-gallery-ornament-line.right {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
}

.hero-gallery-ornament-diamond {
    width: 7px;
    height: 7px;
    background: #f4c430;
    transform: rotate(45deg);
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(244, 196, 48, 0.6);
}

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

/* Gallery Section */
.gallery-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header-gallery {
    text-align: center;
    margin-bottom: 3rem;
}

.section-gallery-title {
    font-size: 2rem;
    color: var(--primary-color);
    font-family: "Amiri", serif;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-gallery-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-gallery-subtitle {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-button {
    padding: 0.5rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-button:hover,
.filter-button.active {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(0, 95, 65, 0.9);
    color: var(--bg-color);
    padding: 1rem;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: "Amiri", serif;
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.page-link {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    background: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}
.page-link.active {
    background: #007bff;
    color: #fff;
    font-weight: bold;
}
.page-link:hover {
    background: #0056b3;
    color: #fff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 1000px;
}

.modal-img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-caption {
    color: white;
    padding: 1rem;
    text-align: center;
}
