/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.5.15,
* Autoprefixer: v10.5.0
* Browsers: last 4 version
*/

/* ============================================================
   PORTFOLIO — frontend (strip + fullscreen galerie)
   Strip sekce (.locations-section, .locations-strip,
   .location-label, .location-photo, .location-copy,
   .location-title) jsou beze změny existující homepage třídy —
   tady je jen to nové: obalový odkaz kolem položky, crossfade
   při AJAX navigaci, a celoobrazovkový režim galerie.
   ============================================================ */

@media (min-width: 769px) {
	#pw-portfolio-app .locations-strip {
		margin-left: 59px;
	}
}

@media (max-width: 768px) {
	#pw-portfolio-app .pw-gallery-marker{
		padding-inline: 10px;
		gap: 5px;
  	}
	#pw-portfolio-app h2.location-title {
		max-width: 100px;
		transform: rotate(180deg) !important;
		writing-mode: vertical-rl !important;
	}
}
/* ── Celá položka (label + foto + copy) je teď jeden klikací
   odkaz — tak, jak byla dřív rozložená na sourozence, jen
   obalená do <a>, takže zarovnání zůstává stejné. ──────────── */
.location-item {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: normal !important;
      -ms-flex-direction: row !important;
          flex-direction: row !important;
  -webkit-box-align: center !important;
      -ms-flex-align: center !important;
          align-items: center !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}

/* ── Plynulý přechod při klientské navigaci (AJAX) ──────────── */
.pw-portfolio-app {
  opacity: 1;
  -webkit-transition: opacity .25s ease;
  transition: opacity .25s ease;
}
.pw-portfolio-app.is-fading {
  opacity: 0;
}

.pw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* ── Celoobrazovkový režim galerie — schová header/menu i patičku ── */
body.pw-portfolio-fullscreen #brx-header,
body.pw-portfolio-fullscreen #brx-footer {
  display: none !important;
}
body.pw-portfolio-fullscreen {
  overflow: hidden;
}

.pw-gallery-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--background-color);
}

.pw-gallery-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(55, 44, 39, 0.12);
  color: var(--text-primary);
  border: 0;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-decoration: none;
  -webkit-transition: background-color .18s ease;
  transition: background-color .18s ease;
}
.pw-gallery-close:hover {
  background-color: rgba(55, 44, 39, 0.22);
}

.pw-gallery-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  color: var(--text-secondary);
  font-family: var(--font-body);
}

/* ── Marker — název (pod)kategorie jako oddělovač uvnitř
   jednoho nepřetržitého scrollu, ne klikací náhled. Malý
   vertikální label (jméno rodičovské kategorie, jen když
   kategorie má podkategorie) + velký kurzívní název — obojí
   recykluje existující .location-label/.location-title. ──── */
.pw-gallery-marker {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: var(--gap-lg);
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  height: 100vh;
  padding-inline: 56px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.pw-gallery-marker .location-title {
  margin: 0;
  white-space: nowrap;
}


.pw-gallery-scroll {
  height: 100vh;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pw-gallery-scroll::-webkit-scrollbar {
  display: none;
}

.pw-gallery-photo {
  height: 100vh;
  width: auto;
  max-width: none;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  opacity: 0;
  -webkit-transition: opacity .6s ease;
  transition: opacity .6s ease;
}
.pw-gallery-photo.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .pw-gallery-photo {
    -webkit-transition: none;
    transition: none;
    opacity: 1;
  }
  .pw-portfolio-app {
    -webkit-transition: none;
    transition: none;
  }
}

@media (max-width: 680px) {
  .pw-gallery-close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}