/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, 1fr);
}

/* Video Section */
.video-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.aspect-w-16 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* News Section */
.news-card {
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

/* Modal Styles */
#galleryModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

#galleryModal.active {
    display: block;
}

/* Backdrop */
#galleryModal > div:first-child {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

#galleryModal > div:nth-child(2) {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Prevent scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}

#galleryModal .absolute {
    position: absolute;
}

#galleryModal .fixed {
    position: fixed;
}

#galleryModal.show {
    opacity: 1;
    visibility: visible;
}

#galleryModal:after {
    content: '×';
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
  }

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

#galleryModal img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.text-xl {
    color: var(--primary-color);
    padding: 10px;
}

.text-gray-600 {
    color: #666;
    padding-left: 10px;
    padding-bottom: 10px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
