@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&display=swap');

/* ==========================================================
   Frontend Styles for Gallery Images (Matches Screenshots)
========================================================== */

/* Main Container */
.gi-frontend-events-container,
.gi-single-gallery-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: inherit;
  box-sizing: border-box;
}

/* ==========================================================
   1. Events Listing Grid (STRICT 3-COLUMN GRID)
========================================================== */
.gi-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.gi-event-card {
  text-align: center;
  width: 100%;
}

.gi-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gi-card-image-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  background-color: #f1f5f9;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gi-card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gi-event-card:hover .gi-card-image-box {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.gi-event-card:hover .gi-card-image-box img {
  transform: scale(1.04);
}

.gi-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 14px 0 0 0;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.gi-event-card:hover .gi-card-title {
  color: #2563eb;
}

/* ==========================================================
   2. Single Event Detail Page (100% FULL WIDTH BANNER)
========================================================== */
.gi-single-banner-wrapper {
  width: 100%;
}

.gi-single-banner {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  min-height: 140px;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #E2E2E2B8;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 40px;
  border-radius: 0;
}

.gi-single-banner-overlay {
  position: absolute;
  inset: 0;
  background-color: #E2E2E2B8;
  z-index: 1;
}

/* Barlow Condensed Font as requested */
.gi-single-banner-title {
  position: relative;
  z-index: 2;
  font-family: "Barlow Condensed", Sans-serif !important;
  font-size: 60px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  color: #000000 !important;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 0 20px;
  margin: 0;
}

.gi-single-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gi-single-photo-item {
  position: relative;
  background: #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gi-single-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gi-single-photo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.gi-single-photo-item:hover img {
  transform: scale(1.05);
}

/* ==========================================================
   3. Lightbox Fullscreen Popup
========================================================== */
.gi-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gi-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.gi-lb-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  z-index: 10;
}

.gi-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.gi-lb-nav:hover {
  background: rgba(255, 255, 255, 0.35);
}

.gi-lb-prev { left: 25px; }
.gi-lb-next { right: 25px; }

.gi-lb-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.gi-lb-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 960px) {
  .gi-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gi-single-photos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gi-single-banner-title {
    font-size: 48px !important;
  }
}

@media (max-width: 600px) {
  .gi-events-grid {
    grid-template-columns: 1fr;
  }
  .gi-single-photos-grid {
    grid-template-columns: 1fr;
  }
  .gi-single-banner-title {
    font-size: 34px !important;
  }
}
