/* Gallery page specific styles */

/* Override the header background image for gallery page */
/* .membership-header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assests/hero.png');
} */

/* Gallery container */
.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
}

/* Section headings */
.section-heading {
  margin-bottom: 40px;
  text-align: center;
}

.section-label {
  color: #ED8A29;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  color: #333;
}

/* Gallery grid layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

/* Responsive grid layout */
@media screen and (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  aspect-ratio: 16/9;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video specific styles */
.video-item {
  aspect-ratio: auto;
}

.video-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-wrapper:hover .video-overlay {
  opacity: 0;
}

.play-button {
  width: 60px;
  height: 60px;
  background: #E77C40;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: background-color 0.3s ease;
}

.video-item:hover .play-button {
  background-color: #ED8A29;
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
}

.play-icon {
  color: white;
  font-size: 24px;
  line-height: 1;
  margin-left: 4px; /* Adjust for visual centering */
}

/* View All Button Styles */
.view-all-container {
  text-align: center;
  margin-bottom: 60px;
}

.view-all-container p {
  margin-bottom: 15px;
  color: #666;
}

/* .view-all-btn {
  display: inline-block;
  padding: 10px 30px;
  background: linear-gradient(180deg, #ED8A29 0%, #C32D2E 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px !important;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.view-all-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
} */

.view-all-btn-new{
  background-image: linear-gradient(180deg, #ED8A29 0%, #C32D2E 100%);
  color: #ffffff !important;
  padding: 10px 25px;
  border-radius: 50px !important;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  height: 40px;
  box-sizing: border-box;
  border: none;
  transition: all 0.3s ease;
  min-width: 160px;
  text-decoration: none !important;
  justify-content: center;
  margin: 0 auto;
}

.view-all-btn-new:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background-image: linear-gradient(180deg, #C32D2E 0%, #ED8A29 100%);
}


/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  flex-wrap: wrap;
}

.page-link, .current-page {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  margin: 0 5px 10px;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
}

.page-link {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.page-link:hover {
  background-color: #ED8A29;
  color: white;
  border-color: #ED8A29;
}

.current-page {
  background: linear-gradient(180deg, #ED8A29 0%, #C32D2E 100%);
  color: white;
  border: 1px solid #C32D2E;
}

/* Back button styles */
.back-link {
  text-align: center;
  margin: 30px 0 60px;
}

.back-btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
}

.back-btn:hover {
  background-color: #eee;
  color: #C32D2E;
}

.video-title {
  padding: 15px;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  background-color: #fff;
}

/* Modal styles */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.95);
}

.modal-content {
  position: relative;
  margin: 2% auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #333;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1010;
  background-color: rgba(255, 255, 255, 0.9);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.close-modal:hover {
  background-color: #C32D2E;
  color: white;
}

/* Modal Canvas Layout */
.modal-canvas {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* Top Section - Title */
.modal-top {
  padding: 20px 60px 15px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.modal-caption {
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  text-align: left;
}

/* Middle Section - Content */
.modal-middle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #f5f5f5;
  overflow: hidden;
}

.modal-middle img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.modal-middle video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
}

/* Bottom Section - Caption/Description */
.modal-bottom {
  padding: 15px 20px 20px;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  min-height: 60px;
  max-height: 120px;
  overflow-y: auto;
}

.modal-description {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* Hide sections if no content */
.modal-top:empty {
  display: none;
}

.modal-bottom:empty {
  display: none;
}

.modal-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.nav-btn {
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: all;
}

.nav-btn:hover {
  background-color: #ED8A29;
  color: white;
  transform: scale(1.1);
}

.modal-navigation {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.nav-btn {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.nav-btn:hover {
  background-color: rgba(237, 138, 41, 0.8);
}

/* Responsive design */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .play-button {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .gallery-container {
    padding: 30px 15px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .section-heading {
    margin-bottom: 25px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .play-button {
    width: 40px;
    height: 40px;
  }
  
  .play-icon {
    font-size: 18px;
  }
}