/* --- Gallery Grid Layout --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Individual Card */
.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5; /* Vertical portrait shape */
    background-color: #f3f4f6;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* --- "Multiple Images" Icon (Top Right) --- */
.multi-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary); /* Uses your pink variable */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.multi-icon i {
    width: 20px;
    height: 20px;
}

/* --- Modal / Lightbox (The Popup) --- */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    transition: opacity 0.2s ease;
}

/* Close Button (Top Right of Modal) */
.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: scale(1.1);
}

.close-btn i { 
    width: 40px; 
    height: 40px; 
}

/* Navigation Arrows (Left/Right) */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.nav-btn:hover { 
    background: rgba(255, 255, 255, 0.3); 
    transform: translateY(-50%) scale(1.05);
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }

/* Mobile Adjustment for Arrows */
@media (max-width: 768px) {
    .nav-btn {
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.3); /* Darker background for visibility on mobile */
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

/* Dots Indicator (Bottom) */
.dots-container {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.4);
}