/* V3.8.3 — Arquivo fotográfico */
.photos-v383 {
  background: var(--paper, #edf2ef);
}

.photos-v383-main {
  width: min(1500px, 94%);
  margin: 0 auto;
}

.photos-v383-hero {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(520px, 1.28fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: center;
  min-height: 650px;
  padding: clamp(55px, 8vw, 115px) 0 clamp(65px, 8vw, 110px);
  border-bottom: 1px solid var(--line, rgba(22,39,31,.14));
}

.photos-v383-hero-copy {
  max-width: 650px;
}

.photos-v383-hero h1 {
  max-width: 9ch;
  margin: 13px 0 25px;
  font: 500 clamp(3.6rem, 6.8vw, 7.3rem)/.88 var(--serif, Georgia, serif);
  letter-spacing: -.065em;
}

.photos-v383-hero-copy > p:last-of-type {
  max-width: 570px;
  color: var(--muted, #65736b);
  font-size: clamp(.96rem, 1.2vw, 1.08rem);
  line-height: 1.75;
}

.photos-v383-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line, rgba(22,39,31,.14));
  color: var(--muted, #65736b);
  font-size: .73rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.photos-v383-stats strong {
  color: var(--text, #17241d);
  font-size: 1rem;
}

.photos-v383-featured {
  display: grid;
  grid-template-columns: 1.38fr .82fr;
  grid-template-rows: 1fr 1fr;
  gap: 9px;
  min-height: 520px;
  height: min(62vw, 690px);
  max-height: 690px;
  overflow: hidden;
  border-radius: 20px;
  background: #dbe3de;
  box-shadow: 0 26px 75px rgba(21,38,29,.13);
}

.photos-v383-featured-button,
.photos-v383-featured-skeleton {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #d9e1dc;
}

.photos-v383-featured-button {
  cursor: zoom-in;
}

.photos-v383-featured-button:first-child,
.photos-v383-featured-skeleton:first-child {
  grid-row: 1 / 3;
}

.photos-v383-featured-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease, filter .25s ease;
}

.photos-v383-featured-button:hover img {
  transform: scale(1.025);
  filter: saturate(1.04);
}

.photos-v383-featured-button span {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 4px;
  padding: 46px 16px 15px;
  color: white;
  text-align: left;
  background: linear-gradient(transparent, rgba(5,12,8,.78));
}

.photos-v383-featured-button strong {
  font: 600 1rem/1.1 var(--serif, Georgia, serif);
}

.photos-v383-featured-button small {
  color: rgba(255,255,255,.75);
  font-size: .66rem;
}

.photos-v383-featured-skeleton {
  animation: photos-v383-pulse 1.35s ease-in-out infinite alternate;
}

@keyframes photos-v383-pulse {
  to { background: #cbd7d0; }
}

.photos-v383-browser {
  padding: clamp(70px, 9vw, 125px) 0 80px;
}

.photos-v383-browser-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.photos-v383-browser-head h2 {
  margin: 8px 0 0;
  font: 500 clamp(2.5rem, 4.7vw, 5.2rem)/.92 var(--serif, Georgia, serif);
  letter-spacing: -.055em;
}

.photos-v383-count {
  margin: 0 0 8px;
  color: var(--muted, #65736b);
  font-size: .78rem;
}

.photos-v383-controls {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(230px, 1.5fr) minmax(145px, .55fr) minmax(200px, .8fr) auto auto;
  gap: 9px;
  align-items: end;
  margin-bottom: 15px;
  padding: 13px;
  border: 1px solid var(--line, rgba(22,39,31,.14));
  border-radius: 15px;
  background: color-mix(in srgb, var(--paper, #edf2ef) 91%, transparent);
  box-shadow: 0 14px 38px rgba(18,35,27,.07);
  backdrop-filter: blur(18px);
}

.photos-v383-controls label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.photos-v383-controls label > span {
  padding-left: 3px;
  color: var(--muted, #65736b);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.photos-v383-controls input,
.photos-v383-controls select {
  width: 100%;
  min-height: 43px;
  padding: 0 13px;
  border: 1px solid var(--line, rgba(22,39,31,.17));
  border-radius: 10px;
  color: var(--text, #17241d);
  background: rgba(255,255,255,.72);
  font: 500 .78rem var(--sans, Arial, sans-serif);
}

.photos-v383-controls input:focus,
.photos-v383-controls select:focus {
  outline: 2px solid color-mix(in srgb, var(--forest-700, #285c46) 35%, transparent);
  outline-offset: 1px;
}

.photos-v383-segments,
.photos-v383-layout {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line, rgba(22,39,31,.14));
  border-radius: 11px;
  background: rgba(255,255,255,.52);
}

.photos-v383-segments button,
.photos-v383-layout button,
.photos-v383-clear {
  min-height: 35px;
  border: 0;
  border-radius: 8px;
  color: var(--text, #17241d);
  background: transparent;
  cursor: pointer;
  font: 800 .64rem var(--sans, Arial, sans-serif);
}

.photos-v383-segments button {
  padding: 0 13px;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.photos-v383-segments button.is-active,
.photos-v383-layout button.is-active {
  color: white;
  background: var(--forest-700, #285c46);
  box-shadow: 0 4px 12px rgba(25,64,47,.2);
}

.photos-v383-layout button {
  width: 37px;
  font-size: 1rem;
}

.photos-v383-layout button:last-child {
  transform: rotate(90deg);
}

.photos-v383-clear {
  padding: 0 11px;
  color: var(--forest-800, #1a4c38);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.photos-v383-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 28px;
  margin-bottom: 18px;
}

.photos-v383-active-filters span {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line, rgba(22,39,31,.14));
  border-radius: 999px;
  color: var(--muted, #65736b);
  background: rgba(255,255,255,.45);
  font-size: .65rem;
}

.photos-v383-grid {
  min-height: 380px;
}

.photos-v383-grid.is-masonry {
  columns: 4 285px;
  column-gap: 11px;
}

.photos-v383-grid.is-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.photos-v383-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 11px;
  padding: 0;
  break-inside: avoid;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  color: white;
  background: #d6dfda;
  cursor: zoom-in;
  text-align: left;
  box-shadow: 0 1px 0 rgba(11,25,17,.05);
}

.photos-v383-grid.is-grid .photos-v383-card {
  margin: 0;
  aspect-ratio: 4 / 3;
}

.photos-v383-card img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 140px;
  object-fit: cover;
  transition: transform .45s ease, filter .25s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.photos-v383-grid.is-grid .photos-v383-card img {
  height: 100%;
}

.photos-v383-card:hover img {
  transform: scale(1.025);
  filter: brightness(.88);
}

.photos-v383-card-meta {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 4px;
  padding: 52px 14px 13px;
  color: white;
  background: linear-gradient(transparent, rgba(5,12,8,.84));
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .22s ease, transform .22s ease;
}

.photos-v383-card:hover .photos-v383-card-meta,
.photos-v383-card:focus-visible .photos-v383-card-meta {
  opacity: 1;
  transform: none;
}

.photos-v383-card-meta strong {
  overflow: hidden;
  font: 600 .88rem/1.2 var(--serif, Georgia, serif);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photos-v383-card-meta small {
  overflow: hidden;
  color: rgba(255,255,255,.74);
  font-size: .62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photos-v383-favorite-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: white;
  background: rgba(8,16,11,.43);
  font-size: .8rem;
  backdrop-filter: blur(8px);
}

.photos-v383-load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 50px 0 30px;
}

.photos-v383-load-more {
  min-width: 260px;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid var(--forest-700, #285c46);
  border-radius: 999px;
  color: var(--forest-800, #1a4c38);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.photos-v383-load-more:hover {
  color: white;
  background: var(--forest-700, #285c46);
  transform: translateY(-2px);
}

.photos-v383-load-more:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.photos-v383-loading {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 11px;
}

.photos-v383-loading span {
  display: block;
  min-height: 250px;
  border-radius: 10px;
  background: #d9e2dc;
  animation: photos-v383-pulse 1.2s ease-in-out infinite alternate;
}

.photos-v383-empty {
  display: grid;
  min-height: 330px;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 35px;
  border: 1px solid var(--line, rgba(22,39,31,.14));
  border-radius: 14px;
  color: var(--muted, #65736b);
  background: rgba(255,255,255,.34);
  text-align: center;
}

.photos-v383-empty strong {
  color: var(--text, #17241d);
  font: 500 clamp(1.7rem, 4vw, 2.6rem)/1 var(--serif, Georgia, serif);
}

.photos-v383-lightbox[hidden] { display: none; }
.photos-v383-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr) 92px;
  color: white;
  background: rgba(4,10,12,.985);
}

.photos-v383-lightbox header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.photos-v383-lightbox-summary {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.photos-v383-lightbox-summary strong { font-size: .8rem; }
.photos-v383-lightbox-summary small {
  overflow: hidden;
  max-width: 52vw;
  margin-top: 3px;
  color: rgba(255,255,255,.55);
  font-size: .67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photos-v383-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.photos-v383-lightbox button {
  color: white;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.photos-v383-lightbox-actions > button:not(.photos-v383-lightbox-close) {
  padding: 9px 11px;
  border-radius: 9px;
  font-size: .7rem;
  font-weight: 750;
}

.photos-v383-lightbox-actions > button:hover,
.photos-v383-lightbox-actions > button.is-active {
  background: rgba(255,255,255,.12);
}

.photos-v383-lightbox-close {
  width: 42px;
  height: 42px;
  font-size: 2rem;
  line-height: 1;
}

.photos-v383-lightbox figure {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  place-items: center;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 17px 76px 8px;
  overflow: hidden;
}

.photos-v383-lightbox-stage {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
}

.photos-v383-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity .2s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.photos-v383-lightbox-stage img.is-loading { opacity: .25; }

.photos-v383-lightbox-stage::after {
  content: "© Carlos Marques · Por Onde Andei";
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 10px;
  border-radius: 7px;
  color: rgba(255,255,255,.72);
  background: rgba(4,12,14,.34);
  font-size: .58rem;
  letter-spacing: .06em;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
  pointer-events: none;
}

.photos-v383-lightbox figcaption {
  display: grid;
  gap: 5px;
  max-width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 20px 12px;
  color: rgba(255,255,255,.68);
  text-align: center;
}

.photos-v383-lightbox figcaption strong {
  color: white;
  font: 600 1.05rem/1.2 var(--serif, Georgia, serif);
}

.photos-v383-lightbox figcaption span,
.photos-v383-lightbox figcaption small,
.photos-v383-lightbox figcaption a {
  font-size: .72rem;
  line-height: 1.45;
}

.photos-v383-lightbox figcaption a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.photos-v383-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 54px;
  height: 76px;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 12px !important;
  background: rgba(255,255,255,.08) !important;
  font-size: 2.8rem;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.photos-v383-lightbox-nav:hover { background: rgba(255,255,255,.16) !important; }
.photos-v383-lightbox-prev { left: 14px; }
.photos-v383-lightbox-next { right: 14px; }

.photos-v383-lightbox-thumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px 18px 14px;
  overflow-x: auto;
  border-top: 1px solid rgba(255,255,255,.08);
  scrollbar-width: thin;
}

.photos-v383-lightbox-thumb {
  flex: 0 0 76px;
  height: 58px;
  padding: 0 !important;
  overflow: hidden;
  border: 2px solid transparent !important;
  border-radius: 8px !important;
  opacity: .5;
  background: #102024 !important;
}

.photos-v383-lightbox-thumb:hover { opacity: .85; }
.photos-v383-lightbox-thumb.is-active { border-color: white !important; opacity: 1; }
.photos-v383-lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }

body.photos-v383-no-scroll { overflow: hidden; }

@media (hover: none) {
  .photos-v383-card-meta { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .photos-v383-hero { grid-template-columns: .8fr 1.2fr; }
  .photos-v383-controls { grid-template-columns: auto minmax(240px,1fr) 145px 190px auto; }
  .photos-v383-clear { grid-column: 1 / -1; justify-self: start; }
  .photos-v383-grid.is-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .photos-v383-main { width: min(94%, 900px); }
  .photos-v383-hero { grid-template-columns: 1fr; min-height: 0; }
  .photos-v383-hero-copy { max-width: 720px; }
  .photos-v383-hero h1 { max-width: 10ch; }
  .photos-v383-featured { height: min(80vw, 620px); }
  .photos-v383-controls { position: static; grid-template-columns: 1fr 1fr; }
  .photos-v383-segments, .photos-v383-search { grid-column: 1 / -1; }
  .photos-v383-layout { justify-self: start; }
  .photos-v383-grid.is-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .photos-v383-main { width: 100%; }
  .photos-v383-hero-copy,
  .photos-v383-browser { width: 92%; margin-right: auto; margin-left: auto; }
  .photos-v383-hero { gap: 38px; padding-top: 58px; }
  .photos-v383-hero h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .photos-v383-featured { grid-template-columns: 1fr 1fr; grid-template-rows: 1.35fr .7fr; width: 100%; height: 118vw; max-height: 620px; border-radius: 0; }
  .photos-v383-featured-button:first-child,
  .photos-v383-featured-skeleton:first-child { grid-column: 1 / 3; grid-row: 1; }
  .photos-v383-browser-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .photos-v383-browser-head h2 { font-size: clamp(2.8rem, 13vw, 4.1rem); }
  .photos-v383-count { margin: 0; }
  .photos-v383-controls { grid-template-columns: 1fr; padding: 10px; }
  .photos-v383-controls > * { grid-column: 1 !important; }
  .photos-v383-segments button { flex: 1; }
  .photos-v383-layout { display: none; }
  .photos-v383-grid.is-masonry { columns: 2 145px; column-gap: 6px; }
  .photos-v383-card { margin-bottom: 6px; border-radius: 5px; }
  .photos-v383-card-meta { padding: 42px 9px 9px; }
  .photos-v383-card-meta strong { font-size: .76rem; }
  .photos-v383-card-meta small { font-size: .57rem; }
  .photos-v383-load-more { width: 100%; }
  .photos-v383-lightbox { grid-template-rows: 58px minmax(0,1fr) 72px; }
  .photos-v383-lightbox header { padding: 0 9px 0 13px; }
  .photos-v383-lightbox-summary small { display: none; }
  .photos-v383-lightbox-actions button span { display: none; }
  .photos-v383-lightbox-actions > button:not(.photos-v383-lightbox-close) { min-width: 38px; padding: 9px; font-size: .85rem; }
  .photos-v383-lightbox figure { padding: 8px 46px 4px; }
  .photos-v383-lightbox-nav { width: 38px; height: 60px; font-size: 2.1rem; }
  .photos-v383-lightbox-prev { left: 3px; }
  .photos-v383-lightbox-next { right: 3px; }
  .photos-v383-lightbox figcaption { padding: 6px 10px 9px; }
  .photos-v383-lightbox-thumbs { padding: 7px 9px 9px; }
  .photos-v383-lightbox-thumb { flex-basis: 62px; height: 48px; }
}

@media (max-width: 390px) {
  .photos-v383-grid.is-masonry { columns: 1; }
}
