m e
/* ==========================================================================
   SKYOCEANENTERPRISES — PHASE 5
   Our Gallery Section & Lightbox Stylesheet
   WordPress: will become template-parts/gallery.php styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Section Wrapper — Deep Navy Background
   -------------------------------------------------------------------------- */
.section-gallery {
  background-color: var(--color-navy);
  padding: 100px 0 110px;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow */
.section-gallery::before {
  content: '';
  position: absolute;
  top: -100px;
  right: 15%;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(22, 138, 173, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   2. Section Header
   -------------------------------------------------------------------------- */
.gallery-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.gallery-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--color-ocean);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.gallery-label::before,
.gallery-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-ocean);
  border-radius: 2px;
  flex-shrink: 0;
}

.gallery-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-white);
  margin-bottom: 20px;
}

.gallery-heading-rule {
  display: block;
  width: 54px;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: 2px;
  margin: 0 auto 22px;
}

.gallery-intro {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. Filter Navigation
   -------------------------------------------------------------------------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.gallery-filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-filter-btn:hover {
  border-color: var(--color-ocean);
  color: var(--color-white);
  background-color: rgba(22, 138, 173, 0.15);
}

.gallery-filter-btn.active {
  background-color: var(--color-ocean);
  border-color: var(--color-ocean);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(22, 138, 173, 0.35);
}

/* --------------------------------------------------------------------------
   4. Gallery Grid (12 Items)
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease;
}

/* Keyframe for presentation slide entrance */
@keyframes pptGalleryEntranceItem {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gallery-item.ppt-slide-in {
  animation: pptGalleryEntranceItem 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Subtle masonry aspect variation for visual interest */
.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
  height: 100%;
}

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

.gallery-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

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

/* Item Overlay */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(13, 27, 42, 0.1) 0%,
      rgba(13, 27, 42, 0.4) 50%,
      rgba(13, 27, 42, 0.92) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus-within .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-tag {
  font-family: var(--font-brand);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.gallery-item-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  margin: 0;
}

.gallery-item-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(22, 138, 173, 0.85);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform var(--transition-fast);
}

.gallery-item-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

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

/* --------------------------------------------------------------------------
   5. Lightbox Modal
   -------------------------------------------------------------------------- */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 1000px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 100%;
  max-height: calc(85vh - 70px);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(85vh - 70px);
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  margin-top: 16px;
  text-align: center;
}

.lightbox-tag {
  display: inline-block;
  font-family: var(--font-brand);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 6px;
}

.lightbox-counter {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Lightbox Controls */
.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--color-white);
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.lightbox-btn:hover {
  background-color: var(--color-ocean);
  transform: scale(1.08);
}

.lightbox-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-close {
  top: -50px;
  right: 0;
}

.lightbox-prev {
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.08);
}

/* --------------------------------------------------------------------------
   6. Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.gal-header-reveal,
.gal-filters-reveal,
.gal-item-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gal-header-reveal.is-visible,
.gal-filters-reveal.is-visible,
.gal-item-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   6.5 Homepage Gallery Preview CTA Button
   -------------------------------------------------------------------------- */
.gallery-cta-wrapper {
  margin-top: 50px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.btn-gallery-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-ocean);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 16px 36px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(22, 138, 173, 0.35);
  transition: all var(--transition-fast);
}

.btn-gallery-cta:hover {
  background-color: #126e8a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 138, 173, 0.45);
  color: var(--color-white);
}

.btn-gallery-cta svg {
  transition: transform var(--transition-fast);
}

.btn-gallery-cta:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   7. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 768px) {
  .section-gallery {
    padding: 72px 0 80px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .gallery-item.tall {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}

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

@media (prefers-reduced-motion: reduce) {

  .gal-header-reveal,
  .gal-filters-reveal,
  .gal-item-reveal,
  .gallery-item,
  .gallery-item-img,
  .gallery-lightbox {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


