﻿.gallery-main {
  background: #f5fbff;
  color: #17314c;
  font-family: Poppins, Helvetica, Arial, sans-serif;
}

.gallery-page-header {
  background: #17314c;
  padding: 14px 18px;
}

.gallery-page-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  color: #ffffff;
  /* font-size: 24px; */
  /* font-weight: 800; */
  line-height: 1;
}

.gallery-page-header__inner a,
.gallery-page-header__inner strong {
  color: #ffffff;
  font: inherit;
  text-decoration: none;
}

.gallery-page-header__inner span {
  display: inline-block;
  margin: 0 9px;
  color: #f08a3c;
  font-size: 20px;
  line-height: 1;
}

.gallery-kicker {
  margin: 0 0 10px;
  color: #1aa5f5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-tabs-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 18px 74px;
}

.gallery-tabs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.gallery-tabs-header h2 {
  margin: 0;
  color: #17314c;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.gallery-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.gallery-tab {
  border: 1px solid rgba(23, 49, 76, 0.16);
  border-radius: 999px;
  padding: 12px 18px;
  background: #ffffff;
  color: #17314c;
  cursor: pointer;
  font: 800 14px/1 Poppins, Helvetica, Arial, sans-serif;
  box-shadow: 0 10px 22px rgba(23, 49, 76, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.gallery-tab:hover,
.gallery-tab.is-active {
  transform: translateY(-2px);
  background: #1aa5f5;
  color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 260px;
  border-radius: 24px;
  background: #dfeef4;
  box-shadow: 0 18px 44px rgba(23, 49, 76, 0.14);
  isolation: isolate;
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 20, 36, 0.72) 100%);
  z-index: 1;
}

.gallery-card span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #17314c;
  font-size: 13px;
  font-weight: 800;
}

.gallery-card:hover img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

@media (max-width: 980px) {
  .gallery-tabs-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-tab-buttons {
    justify-content: flex-start;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .gallery-page-header {
    padding: 28px 16px;
  }

  .gallery-page-header__inner {
    font-size: 20px;
  }

  .gallery-tabs-section {
    padding: 42px 14px 56px;
  }

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

  .gallery-card,
  .gallery-card img {
    min-height: 230px;
  }

  .gallery-tab {
    width: 100%;
  }
}

.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(8, 23, 38, 0.88);
  backdrop-filter: blur(8px);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__frame {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.gallery-lightbox__image {
  display: block;
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #17314c;
  cursor: pointer;
  font-size: 34px;
  line-height: 42px;
  font-family: Arial, sans-serif;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus {
  background: #1aa5f5;
  color: #ffffff;
  outline: none;
}

.gallery-lightbox__arrow {
  position: fixed;
  top: 50%;
  z-index: 1;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #17314c;
  cursor: pointer;
  font-size: 48px;
  line-height: 48px;
  font-family: Georgia, serif;
  transform: translateY(-50%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox__arrow--prev {
  left: 22px;
}

.gallery-lightbox__arrow--next {
  right: 22px;
}

.gallery-lightbox__arrow:hover,
.gallery-lightbox__arrow:focus {
  background: #1aa5f5;
  color: #ffffff;
  outline: none;
}

.gallery-lightbox__arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

@media (max-width: 620px) {
  .gallery-lightbox {
    padding: 14px;
  }

  .gallery-lightbox__frame,
  .gallery-lightbox__image {
    max-width: 96vw;
    max-height: 82vh;
  }

  .gallery-lightbox__close {
    top: 10px;
    right: 10px;
  }

  .gallery-lightbox__arrow {
    top: auto;
    bottom: 18px;
    width: 46px;
    height: 46px;
    font-size: 40px;
    line-height: 40px;
    transform: none;
  }

  .gallery-lightbox__arrow:hover {
    transform: scale(1.04);
  }

  .gallery-lightbox__arrow--prev {
    left: calc(50% - 58px);
  }

  .gallery-lightbox__arrow--next {
    right: calc(50% - 58px);
  }
}
