.page-header {
  background: #1f1f1f;
  padding: 10px 20px;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  position: relative;
}

.page-header h1::after {
  content: "";
  width: 80px;
  height: 3px;
  background: #caa257;
  display: block;
  margin: 15px auto 0;
}
/* ===============================
   PORTFOLIO GALLERY – PREMIUM
================================ */

/* ===============================
   AUTO HEIGHT MASONRY GALLERY
================================ */

.portfolio-gallery {
  padding: 50px 30px;
  background: #3f3f3f;
}

/* Masonry layout */
.gallery-grid {
  column-count: 3;
  column-gap: 25px;
}

/* Card */
.gallery-item {
  break-inside: avoid;
  margin-bottom: 25px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.65);
}

/* Image auto height */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Video (keep 16:9 only for videos) */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Responsive */
@media (max-width: 1100px) {
  .gallery-grid { column-count: 2; }
}

@media (max-width: 600px) {
  .gallery-grid { column-count: 1; }
}

/* ===============================
   LIGHTBOX
================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
  animation: zoomIn 0.4s ease;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===============================
   EVENT COVERAGE GALLERY – FIXED
=================================*/

.event-gallery-section {
    width: 100%;
    padding: 50px 0;
}

/* IMPORTANT FIX */
.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* desktop = 4 cards */
    gap: 20px;
    width: 100%;
}

/* card */
.event-gallery-item {
    width: 100%;
}

/* image frame */
.event-media-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.event-media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* video */
.event-video-box iframe,
.event-video-box video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
/* laptop / small desktop */
@media (max-width: 1200px) {
    .event-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* tablet */
@media (max-width: 900px) {
    .event-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* mobile */
@media (max-width: 480px) {
    .event-gallery-grid {
        grid-template-columns: 1fr;
    }
}
.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
/* ===============================
   EVENT LIGHTBOX
=================================*/

.event-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.event-lightbox-overlay img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 6px;
}

.event-lightbox-caption {
    color: #fff;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}

.event-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 34px;
    color: #fff;
    cursor: pointer;
}
