/* =====================
   ALBUMY (MODELS.PHP)
===================== */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 24px;
}

.album-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: #fff;
}

.album-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform .6s ease;
}

.album-tile:hover .album-thumb img {
  transform: scale(1);
}

.album-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,.35);
}

/* =====================
   MODEL.PHP – LAYOUT
===================== */
.album-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .album-layout {
    grid-template-columns: 1fr;
  }
  .album-meta {
    order: -1;
    margin-bottom: 32px;
  }
}

/* =====================
   META / OPIS
===================== */
.album-meta h1 {
  font-size: 18px;
  margin-bottom: 12px;
}

.album-description {
  font-size: 14px;
  line-height: 1.6;
  opacity: .75;
}

.album-nav {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 18px;
}

.album-nav a {
  text-decoration: none;
  color: inherit;
  opacity: .6;
}

.album-nav a:hover {
  opacity: 1;
}

/* =====================
   MASONRY (FRANKO STYLE)
===================== */
.masonry {
  column-count: 3;
  column-gap: 16px;
}

@media (max-width: 1200px) { .masonry { column-count: 2; } }
@media (max-width: 700px)  { .masonry { column-count: 1; } }

.photo-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 16px;
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease, opacity .4s ease;
  user-select: none;
  pointer-events: none;
}

.photo-item:hover img {
  transform: scale(0.985);
  opacity: .95;
}
/* === MODEL PAGE ONLY === */
.model-masonry {
  column-gap: 24px;
}

.model-masonry .photo-item img {
  transition: transform .4s ease, opacity .4s ease;
}

.model-masonry .photo-item:hover img {
  transform: scale(0.985);
}

/* =====================
   ANTY DOWNLOAD
===================== */
.photo-item {
  pointer-events: auto;
}
.photo-item img {
  pointer-events: none;
}

/* =====================
   SAFETY RESET
===================== */
.masonry,
.masonry * {
  position: static !important;
  float: none !important;
  box-sizing: border-box;
}


/* ===== STANDARD GRID (weddings, events itd.) ===== */
/* ===== EVENTS / WEDDINGS – LEKKI MASONRY ===== */
.photos-grid {
  column-count: 4;
  column-gap: 24px;
    margin-top: 24px;
}

@media (max-width: 1400px) {
  .photos-grid { column-count: 3; }
}
@media (max-width: 900px) {
  .photos-grid { column-count: 2; }
}
@media (max-width: 600px) {
  .photos-grid { column-count: 1; }
}

.photos-grid .photo-item {
  break-inside: avoid;
  margin-bottom: 12px;
}

.photos-grid .photo-item img {
  width: 100%;
  height: auto;
  display: block;
    transition: transform .4s ease, opacity .4s ease;
}
.photos-grid .photo-item:hover img {
  transform: scale(0.985);
  opacity: .95;
}

/* === SAFETY RESET FOR GALLERIES === */
.photos-grid,
.photos-grid * {
  box-sizing: border-box;
}
/* =========================
   ALBUM VIEW (NO GRID)
========================= */

.album-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
}

/* ZDJĘCIA – JEDNO POD DRUGIM */
.album-photos {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.album-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease, opacity .4s ease;
}

.album-photo:hover img {
  transform: scale(0.99);
  opacity: .95;
}

/* PRAWA KOLUMNA – ZAWSZE WIDOCZNY OPIS */
.album-meta {
  position: sticky;
  top: 120px; /* wysokość menu */
  align-self: start;
  font-size: 14px;
  line-height: 1.6;
    animation: fadeUp .6s ease both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */
@media (max-width: 900px) {
  .album-layout {
    grid-template-columns: 1fr;
  }

  .album-meta {
    position: static;
    order: -1;
    margin-bottom: 32px;
  }
}
/* =====================
   GLIGHTBOX – FRANKO STYLE
===================== */

/* ukryj numerację */
.gslide-counter {
  display: none !important;
}

/* tło */
.glightbox-clean .gslide-description {
  background: transparent;
}

/* przyciski */
.glightbox-clean .gprev,
.glightbox-clean .gnext,
.glightbox-clean .gclose {
  background: none;
  width: 48px;
  height: 48px;
  opacity: .6;
  transition: opacity .3s ease;
}

.glightbox-clean .gprev:hover,
.glightbox-clean .gnext:hover,
.glightbox-clean .gclose:hover {
  opacity: 1;
}

/* USUŃ SVG */
.glightbox-clean svg {
  display: none;
}

/* STRZAŁKA WSTECZ */
.glightbox-clean .gprev::before {
  content: "←";
  font-size: 32px;
  color: #fff;
}

/* STRZAŁKA DALEJ */
.glightbox-clean .gnext::before {
  content: "→";
  font-size: 32px;
  color: #fff;
}

/* ZAMKNIJ */
.glightbox-clean .gclose::before {
  content: "□";
  font-size: 26px;
  color: #fff;
}
/* =====================
   SCROLL REVEAL
===================== */

.album-photo {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

.album-photo.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* =====================
   SCROLL REVEAL – GRID
===================== */

.photos-grid .photo-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.photos-grid .photo-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
