/* ==========================================================================
   CureTrip Medical Tourism - Pure Events Photos Gallery & Lightbox
   ========================================================================== */

:root {
  --event-primary: #02015a;
  --event-accent: #f28737;
  --event-accent-hover: #e07223;
  --event-radius: 16px;
  --event-transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==========================================================================
   Events Gallery Section
   ========================================================================== */
.events-gallery-section {
  position: relative;
  z-index: 1;
  padding: 60px 0 90px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 50%, #edf3fa 100%);
  overflow: hidden;
}

.events-gallery-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -80px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 135, 55, 0.1) 0%, rgba(242, 135, 55, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.events-gallery-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 179, 168, 0.1) 0%, rgba(18, 179, 168, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.events-gallery-section .container {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Section Heading (Only Heading, No Extra Text)
   ========================================================================== */
.events-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.events-heading {
  font-size: 38px;
  font-weight: 800;
  color: var(--event-primary);
  margin: 0;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.events-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--event-accent) 0%, #12b3a8 100%);
}

/* ==========================================================================
   Pure Image Gallery Grid (Only Photos)
   ========================================================================== */
.events-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.event-photo-item {
  position: relative;
  height: 270px;
  border-radius: var(--event-radius);
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 10px 25px rgba(2, 1, 90, 0.08);
  border: 1px solid rgba(2, 1, 90, 0.06);
  cursor: pointer;
  transition: var(--event-transition);
  outline: none;
}

.event-photo-item:hover,
.event-photo-item:focus-visible {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 40px rgba(242, 135, 55, 0.22);
  border-color: rgba(242, 135, 55, 0.5);
}

.event-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.event-photo-item:hover .event-photo-img {
  transform: scale(1.1);
}

/* Hover Overlay with Zoom Icon */
.event-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 1, 90, 0.15) 0%, rgba(2, 1, 90, 0.75) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.event-photo-item:hover .event-photo-overlay {
  opacity: 1;
}

.event-photo-zoom-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--event-accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: scale(0.7);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-photo-item:hover .event-photo-zoom-icon {
  transform: scale(1);
}

/* ==========================================================================
   Full-Screen Image Lightbox Modal (Open Image Effect)
   ========================================================================== */
.event-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 24, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.event-lightbox-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.event-lightbox-dialog {
  position: relative;
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.event-lightbox-backdrop.is-open .event-lightbox-dialog {
  transform: scale(1);
}

/* Close Button (Top-Right Floating) */
.event-lightbox-close-btn {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
}

.event-lightbox-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}

/* Main Image View */
.event-lightbox-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, opacity 0.2s ease;
  background: #000000;
}

/* Nav Arrows */
.event-lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 5;
  backdrop-filter: blur(6px);
}

.event-lightbox-nav-btn:hover {
  background: var(--event-accent);
  border-color: var(--event-accent);
  transform: translateY(-50%) scale(1.12);
}

.event-lightbox-prev {
  left: -25px;
}

.event-lightbox-next {
  right: -25px;
}

/* Lightbox Counter (Bottom Floating) */
.event-lightbox-counter {
  margin-top: 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 16px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Event YouTube Video Embed (At Last)
   ========================================================================== */
.event-video-container {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.event-video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: var(--event-radius);
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(2, 1, 90, 0.12);
  border: 1px solid rgba(2, 1, 90, 0.08);
  background: #000000;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.event-video-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(242, 135, 55, 0.2);
}

.event-video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Multi-Video Showcase Grid (Events Videos)
   ========================================================================== */
.events-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.event-video-card {
  background: #ffffff;
  border-radius: var(--event-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(2, 1, 90, 0.08);
  border: 1px solid rgba(2, 1, 90, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

.event-video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(242, 135, 55, 0.22);
  border-color: rgba(242, 135, 55, 0.45);
}

.event-video-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000000;
  overflow: hidden;
}

.event-video-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.event-video-card-body {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #ffffff;
  border-top: 1px solid rgba(2, 1, 90, 0.06);
}

.event-video-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--event-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.event-video-title i {
  color: #ef4444;
  font-size: 20px;
  flex-shrink: 0;
}

.event-video-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--event-accent);
  background: rgba(242, 135, 55, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  border: 1px solid rgba(242, 135, 55, 0.25);
  flex-shrink: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1199px) {
  .events-photos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .event-photo-item {
    height: 250px;
  }
}

@media (max-width: 991px) {
  .events-gallery-section {
    padding: 50px 0 70px;
  }
  .events-heading {
    font-size: 32px;
  }
  .events-photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .events-videos-grid {
    gap: 20px;
  }
  .event-lightbox-prev {
    left: 10px;
  }
  .event-lightbox-next {
    right: 10px;
  }
  .event-lightbox-close-btn {
    top: -44px;
    right: 6px;
  }
}

@media (max-width: 767px) {
  .events-videos-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .event-video-card-body {
    padding: 14px 18px;
  }
  .event-video-title {
    font-size: 15px;
  }
}

@media (max-width: 575px) {
  .events-gallery-section {
    padding: 40px 0 60px;
  }
  .events-heading {
    font-size: 26px;
  }
  .events-photos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .event-photo-item {
    height: 230px;
  }
  .event-lightbox-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .event-lightbox-prev {
    left: 6px;
  }
  .event-lightbox-next {
    right: 6px;
  }
  .event-lightbox-img {
    max-height: 72vh;
  }
}

