.hero-section-base {
  background: linear-gradient(90deg, rgba(255, 0, 76) 0%, rgba(255, 10, 84, 1) 100%) !important;
}

.hero-section-base .overlay {
  background: rgba(0, 0, 0, 0.25) !important;
}

/* --- GALLERY SECTION --- */
.gallery-section {
    background-color: #ffffff;
}

/* --- GALLERY GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 2rem;
    auto-rows: auto;
    grid-auto-flow: dense;
}

/* --- GALLERY ITEM --- */
.gallery-item {
    position: relative;
    overflow: hidden;
    background: #e8e8e8;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* --- GALLERY IMAGE --- */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* When image loads */
.gallery-item img.loaded {
    opacity: 1;
    transform: scale(1);
}

/* --- MASONRY PATTERN (repeats every 10 items) --- */
.gallery-item:nth-child(10n + 1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(10n + 4),
.gallery-item:nth-child(10n + 5) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(10n + 7) {
    grid-column: span 2;
    grid-row: span 2;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1199.98px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .gallery-item:nth-child(10n + 1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item:nth-child(10n + 7) {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 991.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item:nth-child(10n + 1),
    .gallery-item:nth-child(10n + 7) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 575.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-item:nth-child(10n + 1),
    .gallery-item:nth-child(10n + 4),
    .gallery-item:nth-child(10n + 5),
    .gallery-item:nth-child(10n + 7) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 100;
}

.lightbox-container {
    position: relative;
    z-index: 101;
    width: 90%;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-main {
    width: 100%;
    position: relative;
}

.lightbox-main img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
    object-fit: contain;
    animation: lightboxFadeIn 0.3s ease-in-out;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navigation buttons */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 102;
    border-radius: 4px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 102;
}

.lightbox-close:hover {
    color: #e6005c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lightbox-container {
        width: 95%;
    }

    .lightbox-prev,
    .lightbox-next {
        position: static;
        transform: none;
        display: inline-block;
        margin: 20px 10px 0;
    }

    .lightbox-prev {
        left: auto;
    }

    .lightbox-next {
        right: auto;
    }

    .lightbox-close {
        top: -40px;
    }
}