.gallery-grid {
    margin: 2rem 0;
}

.gallery-item {
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.photo-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.photo-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.gallery-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-item {
        padding: 0.25rem;
    }
}

/* Modal styles */
#galleryModal .modal-dialog {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

#galleryModal .modal-content {
    background: rgba(0,0,0,0.95);
    border: none;
    border-radius: 0;
}

#galleryModal .modal-body {
    position: relative;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#galleryModal .close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    z-index: 1050;
    opacity: 0.8;
    font-size: 30px;
}

#galleryModal .close:hover {
    opacity: 1;
}

.modal-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.modal-nav .btn {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    font-size: 20px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav .btn:hover {
    background: rgba(255,255,255,0.3);
}

.modal-nav .btn-prev {
    left: 20px;
}

.modal-nav .btn-next {
    right: 20px;
}

#modalImage {
    max-height: 90vh;
    max-width: 90vw;
    margin: 0 auto;
    object-fit: contain;
}

#galleryModal .btn-close {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1050;
    opacity: 0.8;
    padding: 1rem;
}

#galleryModal .btn-close:hover {
    opacity: 1;
} 