.gallery-section {
    padding: 150px 8% 100px;
    background: linear-gradient(135deg, #fffcfd 0%, #fff 100%);
}

.gallery-heading {
    text-align: center;
    font-size: 4rem;
    background: linear-gradient(to right, var(--ternary-color), var(--main-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    font-weight: 800;
}

.gallery-sub-heading {
    text-align: center;
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.gallery-item:nth-child(3n+1) { grid-row: span 2; }
.gallery-item:nth-child(4n) { grid-column: span 2; }

@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .gallery-item:nth-child(4n) { grid-column: span 1; }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(217, 22, 86, 0.6));
    opacity: 0;
    transition: 0.5s;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    color: white;
    font-size: 2.5rem;
    opacity: 0;
    transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 2;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Lightbox Enhancements */
.custom-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 15, 15, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    backdrop-filter: blur(15px);
}

.lightbox-content img {
    border: 5px solid rgba(255,255,255,0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Animation Delays */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
