.gallery-strip {
  background: #cdd6df;
  padding: 3rem 0 2rem;
  overflow: hidden;
}

.gallery-strip__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.gallery-strip__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-dark);
  margin: 0;
}

.gallery-strip__link {
  font-size: 0.875rem;
}

.gallery-strip__viewport {
  overflow: hidden;
  margin-top: 1rem;
}

.gallery-strip__row {
  display: flex;
  width: fit-content;
}

.gallery-strip__row--forward {
  animation: gallerySlideForward 30s linear infinite;
}

.gallery-strip__row--reverse {
  animation: gallerySlideReverse 30s linear infinite;
  margin-top: 12px;
}

.gallery-strip__row.is-paused {
  animation-play-state: paused;
}

@keyframes gallerySlideForward {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes gallerySlideReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.gallery-strip__item {
  flex-shrink: 0;
  width: 250px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bs-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-right: 12px;
}

.gallery-strip__item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.gallery-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f8f9fa;
}

@media (max-width: 767.98px) {
  .gallery-strip__row {
    gap: 8px;
  }
  .gallery-strip__header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Gallery page hero — same background as news page */
.gallery-page-hero {
  position: relative;
  overflow: hidden;
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 4rem) 0 3rem;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.76) 0%, rgba(15, 118, 110, 0.72) 45%, rgba(20, 184, 166, 0.62) 100%),
    url('/img/contact/page_about_capital_myanmar_back.png') center/cover no-repeat;
  color: #fff;
}

.gallery-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(94, 234, 212, 0.24), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(186, 230, 253, 0.18), transparent 24%);
}

.gallery-page-hero .container {
  position: relative;
  z-index: 1;
}

.gallery-page-hero__content {
  max-width: 720px;
}

.gallery-page-hero__title {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.gallery-page-hero__sub {
  opacity: 0.92;
  font-size: 1.05rem;
  color: #fff;
}

/* Full gallery grid */
.gallery-page__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-page__item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background: var(--bs-light);
  aspect-ratio: 4 / 3;
}

.gallery-page__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-page__item:hover img {
  transform: scale(1.05);
}

.gallery-page__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gallery-page__item:hover .gallery-page__overlay {
  opacity: 1;
}

.gallery-page__caption {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 991.98px) {
  .gallery-page__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767.98px) {
  .gallery-page__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.gallery-page__loader {
  text-align: center;
  padding: 2rem 0;
}

.gallery-page__loader .spinner {
  display: none;
  width: 40px;
  height: 40px;
  border: 3px solid var(--bs-light);
  border-top-color: var(--bs-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

.gallery-page__loader .spinner.is-loading {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.gallery-lightbox__close:hover {
  background: rgba(255,255,255,0.15);
}

.gallery-lightbox__image-wrap {
  max-width: 90vw;
  max-height: 80vh;
  position: relative;
}

.gallery-lightbox__image {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-lightbox__caption {
  color: rgba(255,255,255,0.85);
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  max-width: 600px;
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.gallery-lightbox__nav:hover {
  background: rgba(255,255,255,0.3);
}

.gallery-lightbox__nav--prev {
  left: 1.5rem;
}

.gallery-lightbox__nav--next {
  right: 1.5rem;
}

@media (max-width: 767.98px) {
  .gallery-lightbox__nav {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  .gallery-lightbox__nav--prev {
    left: 0.5rem;
  }
  .gallery-lightbox__nav--next {
    right: 0.5rem;
  }
  .gallery-lightbox__image {
    max-width: 95vw;
    max-height: 70vh;
  }
}
