/* Gallery Page Specific Styles */

/* Gallery Content */
.gallery-content {
    padding: var(--spacing-3xl) 0;
}
.gallery-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.gallery-item.hidden {
    display: none;
}

.gallery-placeholder {
    aspect-ratio: 4/3;
  
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary-blue);
   
    position: relative;
    overflow: hidden;
}

.gallery-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-placeholder::before {
    transform: translateX(100%);
}

.gallery-placeholder .placeholder-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .placeholder-icon {
    transform: scale(1.1);
}

.gallery-placeholder p {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    margin: 0;
    text-align: center;
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-placeholder p {
    transform: translateY(-4px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        transform: scale(0.7);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: all var(--transition-fast);
}

.close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-placeholder {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--accent-blue) 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-3xl);
    text-align: center;
    color: var(--primary-blue);
    min-width: 400px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-xl);
}

.modal-placeholder .placeholder-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-lg);
}

.modal-placeholder p {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin: 0;
}

/* Gallery Animation */
.gallery-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.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; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Gallery Page */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }

    .gallery-filters {
        gap: var(--spacing-sm);
    }

    .filter-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.9rem;
    }

    .gallery-placeholder .placeholder-icon {
        font-size: 2.5rem;
    }

    .gallery-placeholder p {
        font-size: 1rem;
    }

    .modal-placeholder {
        min-width: 300px;
        min-height: 200px;
        padding: var(--spacing-xl);
    }

    .modal-placeholder .placeholder-icon {
        font-size: 4rem;
    }

    .modal-placeholder p {
        font-size: 1.25rem;
    }

    .close {
        top: -35px;
        font-size: 1.75rem;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 200px;
        text-align: center;
    }

    .gallery-placeholder .placeholder-icon {
        font-size: 2rem;
    }

    .gallery-placeholder p {
        font-size: 0.95rem;
    }

    .modal-placeholder {
        min-width: 250px;
        min-height: 180px;
        padding: var(--spacing-lg);
    }

    .modal-placeholder .placeholder-icon {
        font-size: 3rem;
    }

    .modal-placeholder p {
        font-size: 1.125rem;
    }

    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }
}
.event-container {
  display: grid;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  padding: 50px 0;
  max-width: 1299px;
  margin-inline: auto;
  grid-template-columns: repeat(3, auto);

}



.event-card {
  width: 380px;
  background-color: white;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

@media (max-width: 1299px){
  .event-container {
    grid-template-columns: repeat(2,auto);
  }
}

@media screen and (max-width: 768px) {
  .event-container {
    grid-template-columns: repeat(1,auto);
    gap: 15px;
    padding: 40px 15px;
  }
  .event-card{
    width: 80vw;
  }
}

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

.cover-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

.event-title {
  text-align: left;
  margin: 10px 0;
  font-size: 20px;
  color: #0077cc;
}

.view-more-btn {
  background-color: #0077cc;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.view-more-btn:hover {
  background-color: #005f99;
}

/* Modal */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}
.modal-inner {
  background: white;
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}


.modal-close {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: black;
}

.modal-gallery {
  gap: 20px;
  margin-top:10px;
}



/* Gallery Grid */
.gallery-content {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 32px;
  cursor: pointer;
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
}

#prevSlide {
  left: 30px;
}

#nextSlide {
  right: 30px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .modal-content img {
    max-width: 95%;
    max-height: 70vh;
  }
}
