/* ── FOTOGALLERY — FitExpress ─────────────────────────────────────── */

/* ── Page header shared (fxph) ── */
.fxph {
  background: #050505;
  padding: 120px 0 64px;
  text-align: center;
}
.fxph__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.fxph__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #F5C400;
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
}
.fxph__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
  color: #fff;
  margin: 0 0 16px;
  font-family: 'Poppins', sans-serif;
}
.fxph__title em { color: #F5C400; font-style: normal; }
.fxph__sub {
  font-size: 16px;
  color: rgba(255,255,255,.55);
  margin: 0;
  font-weight: 400;
  line-height: 1.7;
  font-family: 'Poppins', sans-serif;
}

/* ── Wrapper ── */
.fxpg-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Filter bar ── */
.fxpg-filters {
  background: #fff;
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}
.fxpg-filters__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 0;
}
.fxpg-filters__inner::-webkit-scrollbar { display: none; }
.fxpg-filter {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 100px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all .2s;
  white-space: nowrap;
}
.fxpg-filter.is-active,
.fxpg-filter:hover {
  background: #050505;
  border-color: #050505;
  color: #fff;
}

/* ── Section ── */
.fxpg-section {
  background: #F4F4F6;
  padding: 48px 0 80px;
}

/* ── Grid (CSS columns masonry) ── */
.fxpg-grid {
  columns: 4;
  column-gap: 10px;
}
@media (max-width: 1100px) { .fxpg-grid { columns: 3; } }
@media (max-width: 768px)  { .fxpg-grid { columns: 2; } }
@media (max-width: 480px)  { .fxpg-grid { columns: 1; } }

/* ── Card ── */
.fxpg-card {
  display: block;
  break-inside: avoid;
  margin-bottom: 10px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #ddd;
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease, box-shadow .3s ease;
}
.fxpg-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fxpg-card.fxpg-card--hidden {
  display: none;
}
.fxpg-card__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.fxpg-card:hover .fxpg-card__img {
  transform: scale(1.04);
}
.fxpg-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}

/* ── Caption ── */
.fxpg-card__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-align: left;
  opacity: 0;
  transition: opacity .3s;
}
.fxpg-card:hover .fxpg-card__caption { opacity: 1; }

/* ── Zoom icon ── */
.fxpg-card__zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity .25s;
}
.fxpg-card:hover .fxpg-card__zoom { opacity: 1; }

/* ── Empty state ── */
.fxpg-empty-state {
  text-align: center;
  color: #999;
  padding: 64px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
}

/* ── Modal / Lightbox ── */
.fxpg-modal[hidden] { display: none !important; }

.fxpg-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.fxpg-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.fxpg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(8px);
}

.fxpg-modal__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  padding: 0;
}

.fxpg-modal__img-wrap {
  position: relative;
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fxpg-modal__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  transition: opacity .15s ease;
  object-fit: contain;
}
.fxpg-modal__img--fade { opacity: 0; }

.fxpg-modal__close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10;
}
.fxpg-modal__close:hover { background: rgba(255,255,255,.25); }

.fxpg-modal__nav {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, opacity .2s;
  position: relative;
  z-index: 2;
}
.fxpg-modal__nav:hover { background: rgba(255,255,255,.25); }
.fxpg-modal__nav:disabled { opacity: .25; cursor: default; }

.fxpg-modal__caption {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  margin: 0;
  max-width: 600px;
  padding: 0 16px;
}

.fxpg-modal__counter {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: rgba(255,255,255,.4);
  font-size: 12px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .fxpg-wrap { padding: 0 16px; }
  .fxpg-section { padding: 32px 0 60px; }
  .fxpg-modal__nav { width: 40px; height: 40px; }
  .fxpg-modal__img-wrap { max-width: calc(100vw - 120px); }
  .fxph { padding: 100px 0 48px; }
}
