/* Gallery Page Styles */
.photo-gallery-section {
    padding: 60px 60px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-header h2 {
  .modal-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* Home page specific gallery styles */
.home-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
    min-height: 250px;
    position: relative;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
    font-size: 1.1rem;
}

.loading-indicator i {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #3498db;
}

/* Responsive styles for home page gallery */
@media (max-width: 992px) {
    .home-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .home-media-grid {
        grid-template-columns: 1fr;
    }
}size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.gallery-header p {
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Filter buttons */
.gallery-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #f5f5f5;
    border: none;
    color: #333;
    padding: 10px 20px;
    margin: 0 10px 10px 0;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e0e0e0;
}

.filter-btn.active {
    background-color: #3498db;
    color: white;
}

/* Media grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 0 auto;
}

.media-item {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.media-item:hover {
    transform: translateY(-5px);
}

.media-item-inner {
    position: relative;
    overflow: hidden;
}

.media-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.media-item:hover img {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-item:hover .media-overlay {
    opacity: 1;
}

.media-icon {
    color: white;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive styles */
@media (max-width: 992px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .photo-gallery-section {
        padding: 40px 0;
    }
    
    .gallery-header h2 {
        font-size: 2rem;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery-header h2 {
        font-size: 1.8rem;
    }
    
    .gallery-header p {
        font-size: 1rem;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Modal/Lightbox Styles */
.media-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 20px 0;
}

.media-modal.show {
    opacity: 1;
    display: block;
}

.modal-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.modal-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    position: relative;
    text-align: center;
}

/* Navigation Buttons */
.nav-btn {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

#modalImage {
    width: auto;
    height: auto;
    object-fit: contain;
    max-width: 100%;
    max-height: 75vh;
    margin: 0 auto;
    display: inline-block;
}

#modalVideo {
    width: 100%;
    height: auto;
    max-height: 75vh;
    margin: 0 auto;
    display: block;
}

#modalCaption {
    margin: 15px auto 0;
    display: block;
    width: 100%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: auto;
    font-size: 1.1rem;
    position: relative;
}

.close-modal {
    position: fixed;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1001;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    
    #modalCaption {
        width: 95%;
    }
    
    .close-modal {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}
