.manuf-page {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.2rem clamp(1rem, 3vw, 2.4375rem) 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- Intro ---------- */
.manuf-intro {
  position: relative;
  background: radial-gradient(ellipse at 25% 35%, var(--wine) 0%, var(--wine-2) 78%);
  color: var(--cream);
  border: 1px solid rgba(201,162,75,.55);
  border-radius: 4px;
  padding: 3rem 3rem 2.8rem;
  text-align: center;
  margin-bottom: 1.4rem;
}
.manuf-intro .eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .9rem;
}
.manuf-intro h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(2.15rem, 4vw, 3.05rem);
  line-height: 1.1;
  margin: 0;
  color: var(--cream);
}
.manuf-intro h1 em {
  font-style: italic;
  color: var(--gold);
}
.manuf-intro .gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin: 1.1rem auto 1.2rem;
  color: var(--gold);
}
.manuf-intro .gold-divider .line { width: 34px; height: 1px; background: var(--gold); }
.manuf-intro .gold-divider svg { width: 13px; height: 13px; }
.manuf-intro .lede {
  margin: 0 auto;
  max-width: 52ch;
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(243,234,217,.85);
}

/* ---------- Rows ---------- */
.manuf-rows {
  display: flex;
  flex-direction: column;
}

.manuf-row {
  display: flex;
  align-items: center;
  gap: 3.4rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(74,15,24,.12);
}
.manuf-row:last-child { border-bottom: none; }
.manuf-row--reverse { flex-direction: row-reverse; }

.manuf-row-text {
  flex: 1 1 0;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.manuf-row-gallery {
  flex: 1 1 0;
  min-width: 300px;
}

.manuf-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 30%, var(--wine) 0%, var(--wine-2) 85%);
}
.manuf-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
}
.manuf-tag {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(201,162,75,.14);
  padding: .32rem .75rem;
  border-radius: 999px;
}
.manuf-row-text h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0;
  color: var(--wine);
  line-height: 1.2;
}
/* Cormorant Garamond (základní písmo webu) je tenké a s malými písmeny -
   proto větší velikost a řez 500, jinak text vedle fotek zaniká. */
.manuf-row-text p {
  margin: 0;
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  max-width: 60ch;
  text-wrap: pretty;
}

/* Kontakt (Řezníček) - telefon a e-mail každý na vlastním řádku, nikdy
   zalomené uprostřed čísla/adresy. */
.manuf-contact {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--gold);
  background: rgba(201,162,75,.1);
  border-radius: 0 6px 6px 0;
}
.manuf-contact-title {
  font-size: clamp(1.2rem, 1.6vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
}
.manuf-contact a {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 600;
  color: var(--wine);
  text-decoration: none;
  white-space: nowrap;
}
.manuf-contact a:hover { color: var(--gold-deep); }

.manuf-link {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  white-space: nowrap;
  font-weight: 600;
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: .15rem;
}
.manuf-link:hover { color: var(--gold-deep); }

/* ---------- Gallery collage ---------- */
.manuf-gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 320px;
}
.gallery-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: repeating-linear-gradient(135deg, rgba(74,15,24,.05), rgba(74,15,24,.05) 10px, rgba(74,15,24,.02) 10px, rgba(74,15,24,.02) 20px);
  border: 1px dashed rgba(74,15,24,.25);
  border-radius: 8px;
}
.gallery-tile--main { grid-row: 1 / 3; }
/* Dlaždice s fotkou jsou <button> (klik otevře lightbox, viz Manufaktura.js). */
button.gallery-tile {
  font: inherit;
  color: inherit;
  padding: 0;
  cursor: zoom-in;
  min-width: 0;
  min-height: 0;
}
.gallery-tile--image,
.gallery-tile--photo {
  position: relative;
  border-style: solid;
  border-color: rgba(201,162,75,.45);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.gallery-tile--image:hover,
.gallery-tile--photo:hover,
.gallery-tile--image:focus-visible,
.gallery-tile--photo:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 8px 22px rgba(74,15,24,.18);
}
.gallery-tile--image { background: #fff; }
.gallery-tile--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-tile--photo { background: var(--cream); }
.gallery-tile--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gallery-tile--photo:hover img { transform: scale(1.04); }
.gallery-tile span.gallery-tile-label {
  position: absolute;
  left: .5rem;
  bottom: .5rem;
  padding: .22rem .6rem;
  border-radius: 999px;
  background: rgba(43,16,18,.72);
  color: var(--cream);
  font-size: .75rem;
  letter-spacing: .04em;
  opacity: 1;
}
.gallery-tile svg {
  width: 26px;
  height: 26px;
  stroke: var(--ink-soft);
  opacity: .5;
}
.gallery-tile span {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  opacity: .75;
  text-align: center;
  padding: 0 .6rem;
}

/* ---------- Lightbox (stejný jako na manufakturadandova.cz, Produkt.css) ---------- */
.image-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 3.5rem 2rem 1.2rem;
  background: rgba(20,6,8,.88);
}
.image-lightbox-overlay[hidden] { display: none; }

.image-lightbox-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#image-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  background: #fff;
}

.image-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201,162,75,.55);
  background: var(--cream);
  color: var(--wine);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.image-lightbox-arrow:hover { background: #fff; }
.image-lightbox-arrow[hidden] { display: none; }
.image-lightbox-arrow svg { width: 20px; height: 20px; }
.image-lightbox-arrow--prev { left: 0; }
.image-lightbox-arrow--next { right: 0; }

.image-lightbox-caption {
  margin: 0;
  min-height: 1.2em;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: var(--cream);
  text-align: center;
}

.image-lightbox-thumbs {
  display: flex;
  gap: .5rem;
  max-width: 100%;
  overflow-x: auto;
  padding: .2rem .2rem .4rem;
  flex-shrink: 0;
}
.image-lightbox-thumbs[hidden] { display: none; }
.image-lightbox-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream);
  opacity: .55;
  transition: border-color .15s ease, opacity .15s ease;
}
.image-lightbox-thumb:hover { opacity: 1; }
.image-lightbox-thumb.active { opacity: 1; border-color: var(--gold); }
.image-lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.image-lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--cream);
  cursor: pointer;
}
.image-lightbox-close:hover { color: var(--gold); }

@media (max-width: 640px) {
  .image-lightbox-overlay { padding: 3.2rem .6rem .8rem; }
  .image-lightbox-arrow { width: 36px; height: 36px; }
}

@media (max-width: 860px) {
  .manuf-intro { padding: 2.4rem 1.6rem; }

  .manuf-row, .manuf-row--reverse {
    flex-direction: column;
    align-items: stretch;
    gap: 1.6rem;
    padding: 2.4rem 0;
  }
  .manuf-gallery { height: 260px; }
}

/* Sekce viditelné zatím jen pro správce (Manufaktura.cshtml, isAdmin). */
.manuf-admin-note {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--ink-soft);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 600;
}
