* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f7f7f7;
  color: #112639;
  font-family: "Inter", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

.gallery-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #112639;
}

.gallery-hero__bg {
  position: absolute;
  inset: 0;
}

.gallery-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 38, 57, 0.92), rgba(17, 38, 57, 0.48)),
    linear-gradient(0deg, rgba(17, 38, 57, 0.35), transparent);
}

.gallery-hero__content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 90px;
}

.gallery-hero__content span {
  display: inline-block;
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  color: #ffffff;
  border-left: 3px solid #d13b18;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-hero__content h1 {
  max-width: 760px;
  color: white;
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 1.2rem;
}

.gallery-hero__content p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.75;
}

.gallery-page-section {
  padding: 6rem 0;
}

.gallery-page-container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.gallery-page-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.gallery-page-header span {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding-left: 0.8rem;
  color: #d13b18;
  border-left: 3px solid #d13b18;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-page-header h2 {
  color: #112639;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.gallery-page-header p {
  color: rgba(17, 38, 57, 0.68);
  line-height: 1.7;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: #e5e5e5;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(17, 38, 57, 0.08);
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-photo::after {
  content: "View";
  position: absolute;
  inset: auto 1rem 1rem auto;
  padding: 0.45rem 0.75rem;
  color: white;
  background: rgba(17, 38, 57, 0.72);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s ease;
}

.gallery-photo:hover img {
  transform: scale(1.06);
}

.gallery-photo:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 10, 16, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
}

.lightbox__content {
  position: relative;
  width: min(92vw, 1100px);
  height: min(82vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.lightbox__close,
.lightbox__arrow {
  position: absolute;
  border: none;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__close {
  top: 1.4rem;
  right: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 2.4rem;
  line-height: 1;
  z-index: 2;
}

.lightbox__arrow--left {
  left: 1.4rem;
}

.lightbox__arrow--right {
  right: 1.4rem;
}

.lightbox__close:hover,
.lightbox__arrow:hover {
  background: #d13b18;
}

.lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: -2.3rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .gallery-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox__arrow {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 620px) {
  .gallery-hero {
    min-height: 50vh;
  }

  .gallery-hero__content,
  .gallery-page-container {
    width: calc(100% - 32px);
  }

  .gallery-page-section {
    padding: 4.5rem 0;
  }

  .gallery-page-grid {
    grid-template-columns: 1fr;
  }

  .lightbox__content {
    width: 92vw;
    height: 72vh;
  }

  .lightbox__arrow {
    top: auto;
    bottom: 1.4rem;
    transform: none;
  }

  .lightbox__arrow--left {
    left: calc(50% - 60px);
  }

  .lightbox__arrow--right {
    right: calc(50% - 60px);
  }

  .lightbox__counter {
    bottom: -1.8rem;
  }
}