.photos-page {
  background: #0b0b0b;
  color: #f7f2df;
  min-height: 100vh;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.album-overlay {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  inset: 0;
  opacity: 0;
  padding: clamp(12px, 3vw, 34px);
  pointer-events: none;
  position: fixed;
  transition: opacity 240ms ease;
  z-index: 900;
}

.album-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.album-overlay-backdrop {
  background: rgba(0, 0, 0, 0.62);
  border: 0;
  cursor: zoom-out;
  inset: 0;
  padding: 0;
  position: absolute;
}

.album-panel {
  box-sizing: border-box;
  background: #0b0b0b;
  border: 1px solid rgba(247, 242, 223, 0.14);
  border-radius: 10px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.58);
  height: min(920px, calc(100dvh - clamp(24px, 6vw, 68px)));
  max-width: min(1180px, calc(100vw - clamp(24px, 6vw, 68px)));
  min-height: 0;
  overflow-y: auto;
  position: relative;
  transform: translateY(18px) scale(0.992);
  transition: filter 260ms ease, opacity 260ms ease, transform 260ms ease;
  width: 100%;
}

.album-overlay.open .album-panel {
  transform: translateY(0) scale(1);
}

.album-overlay-open {
  overflow: hidden;
}

.album-overlay-open .pwa-install-toast {
  display: none;
}

.album-overlay-open .content,
.album-overlay-open .background,
.album-overlay-open .footer {
  filter: blur(6px);
  transform: scale(0.992);
  transition: filter 260ms ease, transform 260ms ease;
}

.photos-header {
  align-items: center;
  background: rgba(11, 11, 11, 0.82);
  border-bottom: 1px solid rgba(247, 242, 223, 0.12);
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 42px);
  position: sticky;
  top: 0;
  transform-origin: top center;
  transition: filter 240ms ease, opacity 240ms ease, transform 240ms ease;
  z-index: 20;
}

.photos-brand,
.photos-nav a {
  color: #f7f2df;
  font-family: var(--_fonts---font-family--ibm-plex-mono);
  text-decoration: none;
}

.photos-brand {
  color: var(--yellow);
  font-weight: 700;
}

.photos-nav {
  display: flex;
  gap: 18px;
}

.photos-nav a {
  font-size: 0.82rem;
  opacity: 0.78;
  transition: opacity 160ms ease;
}

.photos-nav a:hover,
.photos-nav a:focus-visible {
  opacity: 1;
}

.photos-shell {
  margin: 0 auto;
  max-width: 1500px;
  padding: 20px clamp(14px, 3vw, 38px) 70px;
  transform-origin: center top;
  transition: filter 260ms ease, opacity 260ms ease, transform 260ms ease;
}

.album-viewer-open {
  overflow: hidden;
}

.album-viewer-open .photos-shell,
.album-viewer-open .photos-header,
.album-viewer-open .album-panel {
  filter: blur(10px);
  opacity: 0.42;
  transform: scale(0.985);
}

.album-close {
  align-items: center;
  background: rgba(247, 242, 223, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #111;
  cursor: pointer;
  display: flex;
  font-size: 23px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 38px;
}

.album-close:hover,
.album-close:focus-visible {
  background: #fff;
  outline: none;
}

.photos-group-title,
.photo-viewer-meta,
.photo-viewer-info p,
.photos-load-more,
.photos-country-button {
  font-family: var(--_fonts---font-family--ibm-plex-mono);
}

.photos-country-nav {
  background: rgba(11, 11, 11, 0.86);
  border-bottom: 1px solid rgba(247, 242, 223, 0.12);
  border-top: 1px solid rgba(247, 242, 223, 0.08);
  backdrop-filter: blur(12px);
  display: flex;
  gap: 8px;
  margin: -20px calc(clamp(14px, 3vw, 38px) * -1) 24px;
  overflow-x: auto;
  padding: 12px clamp(14px, 3vw, 38px);
  position: sticky;
  scrollbar-width: thin;
  top: 75px;
  z-index: 18;
}

.photos-country-nav[hidden] {
  display: none;
}

.photos-country-button {
  align-items: center;
  background: rgba(247, 242, 223, 0.07);
  border: 1px solid rgba(247, 242, 223, 0.12);
  border-radius: 999px;
  color: rgba(247, 242, 223, 0.86);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.72rem;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 6px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.photos-country-button:hover,
.photos-country-button:focus-visible {
  background: rgba(247, 242, 223, 0.14);
  border-color: rgba(247, 242, 223, 0.28);
  color: #f7f2df;
  outline: none;
  transform: translateY(-1px);
}

.photos-country-button img,
.photos-group-title img {
  border-radius: 999px;
  display: block;
  height: 24px;
  object-fit: cover;
  width: 24px;
}

.photos-country-fallback {
  align-items: center;
  background: var(--yellow);
  border-radius: 999px;
  color: #111;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.photos-group {
  margin-top: 34px;
}

.photos-group-title {
  border-bottom: 1px solid rgba(247, 242, 223, 0.14);
  color: rgba(247, 242, 223, 0.78);
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0 0 14px;
  padding-bottom: 9px;
}

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

.photo-tile {
  aspect-ratio: 1 / 1;
  background: rgba(247, 242, 223, 0.06);
  border: 1px solid rgba(247, 242, 223, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0);
  cursor: pointer;
  display: block;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  transform: translateZ(0);
  transition: border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
  width: 100%;
}

.photo-tile-2,
.photo-tile-7 {
  aspect-ratio: 4 / 5;
}

.photo-tile-4,
.photo-tile-9 {
  aspect-ratio: 5 / 4;
}

.photo-tile-6 {
  aspect-ratio: 3 / 4;
}

.photo-tile-11 {
  aspect-ratio: 4 / 3;
}

.photo-tile-media,
.photo-tile img {
  display: block;
  height: 100%;
  width: 100%;
}

.photo-tile img {
  object-fit: cover;
  transform: scale(1.01);
  transition: filter 220ms ease, transform 220ms ease;
}

.photo-tile:hover,
.photo-tile:focus-visible {
  border-color: rgba(247, 242, 223, 0.24);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
  outline: none;
  transform: translateY(-2px);
}

.photo-tile:hover img,
.photo-tile:focus-visible img {
  filter: brightness(1.08) saturate(1.04);
  transform: scale(1.045);
}

.photo-tile-shine {
  background: linear-gradient(120deg, transparent 5%, rgba(255, 255, 255, 0.2), transparent 40%);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-70%);
  transition: opacity 180ms ease, transform 420ms ease;
}

.photo-tile:hover .photo-tile-shine,
.photo-tile:focus-visible .photo-tile-shine {
  opacity: 1;
  transform: translateX(70%);
}

.photo-tile-video {
  align-items: center;
  background: rgba(0, 0, 0, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-family: var(--_fonts---font-family--ibm-plex-mono);
  font-size: 0.72rem;
  gap: 5px;
  padding: 6px 9px;
  position: absolute;
  right: 8px;
  top: 8px;
}

.photos-loading,
.photos-empty {
  border: 1px solid rgba(247, 242, 223, 0.12);
  border-radius: 8px;
  color: rgba(247, 242, 223, 0.68);
  font-family: var(--_fonts---font-family--ibm-plex-mono);
  padding: 28px;
  text-align: center;
}

.photos-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.photos-load-more {
  background: var(--yellow);
  border: none;
  border-radius: 8px;
  color: #0b0b0b;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
}

.photos-load-more:disabled {
  cursor: wait;
  opacity: 0.68;
}

.photo-viewer {
  align-items: center;
  box-sizing: border-box;
  display: grid;
  inset: 0;
  justify-items: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 220ms ease;
  z-index: 1000;
}

.photo-viewer.open {
  opacity: 1;
  pointer-events: auto;
}

.photo-viewer-backdrop {
  background:
    radial-gradient(circle at 50% 15%, rgba(247, 242, 223, 0.08), transparent 32%),
    rgba(0, 0, 0, 0.78);
  border: 0;
  cursor: zoom-out;
  inset: 0;
  padding: 0;
  position: fixed;
}

.photo-viewer-stage {
  align-items: center;
  box-sizing: border-box;
  display: grid;
  gap: 16px;
  grid-template-rows: minmax(0, 1fr) auto auto;
  height: min(92dvh, 920px);
  margin: 0;
  max-width: min(1120px, calc(100vw - 150px));
  position: relative;
  width: 100%;
  z-index: 1001;
}

.photo-viewer-media {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 0;
  width: 100%;
}

.photo-viewer-media img,
.photo-viewer-media video {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  max-height: min(72vh, 760px);
  max-width: 100%;
  object-fit: contain;
}

.photo-viewer-media.is-transitioning > * {
  opacity: 0;
}

.photo-viewer-info {
  align-items: center;
  color: rgba(247, 242, 223, 0.88);
  display: grid;
  gap: 6px;
  justify-items: center;
  margin: 0 auto;
  max-width: 720px;
  min-height: 74px;
  text-align: center;
}

.photo-viewer-info h2 {
  color: #f7f2df;
  font-family: var(--_fonts---font-family--instrument-serif);
  font-size: clamp(1.7rem, 3.4vw, 3.1rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

.photo-viewer-info p {
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  max-width: 62ch;
  white-space: pre-wrap;
}

.photo-viewer-meta {
  color: rgba(247, 242, 223, 0.62);
  font-size: 0.76rem;
}

.photo-viewer-close,
.photo-viewer-nav {
  align-items: center;
  background: rgba(247, 242, 223, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #111;
  cursor: pointer;
  display: flex;
  justify-content: center;
  position: fixed;
  transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
  z-index: 1002;
}

.photo-viewer-close:hover,
.photo-viewer-close:focus-visible,
.photo-viewer-nav:hover,
.photo-viewer-nav:focus-visible {
  background: #fff;
  outline: none;
  transform: scale(1.04);
}

.photo-viewer-close {
  font-size: 23px;
  height: 38px;
  right: 22px;
  top: 20px;
  width: 38px;
}

.photo-viewer-nav {
  font-size: 46px;
  height: 54px;
  line-height: 1;
  top: 50%;
  width: 54px;
}

.photo-viewer-prev {
  left: 22px;
}

.photo-viewer-next {
  right: 22px;
}

.photo-viewer-strip {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 auto;
  max-width: min(760px, 100%);
  overflow-x: auto;
  padding: 2px 4px 8px;
  scrollbar-width: thin;
}

.photo-viewer-thumb {
  background: transparent;
  border: 1px solid rgba(247, 242, 223, 0.16);
  border-radius: 6px;
  cursor: pointer;
  flex: 0 0 auto;
  height: 48px;
  opacity: 0.58;
  overflow: hidden;
  padding: 0;
  transition: border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
  width: 48px;
}

.photo-viewer-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-viewer-thumb:hover,
.photo-viewer-thumb:focus-visible,
.photo-viewer-thumb.is-active {
  border-color: var(--yellow);
  opacity: 1;
  outline: none;
}

.photo-viewer-thumb.is-active {
  transform: translateY(-2px);
}

.photo-viewer-transition-clone {
  object-fit: cover;
  pointer-events: none;
  position: fixed;
  z-index: 1004;
}

.photo-viewer.open .photo-viewer-close,
.photo-viewer.open .photo-viewer-nav,
.photo-viewer.open .photo-viewer-info,
.photo-viewer.open .photo-viewer-strip {
  animation: viewerControlsIn 260ms ease 120ms both;
}

.photo-viewer-media.is-entering-next {
  animation: mediaNextIn 210ms ease both;
}

.photo-viewer-media.is-entering-prev {
  animation: mediaPrevIn 210ms ease both;
}

@keyframes viewerControlsIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mediaNextIn {
  from {
    opacity: 0;
    transform: translateX(16px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes mediaPrevIn {
  from {
    opacity: 0;
    transform: translateX(-16px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 1180px) {
  .photos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .photo-viewer-stage {
    max-width: calc(100vw - 116px);
  }
}

@media (max-width: 780px) {
  .album-overlay {
    align-items: stretch;
    padding: 0;
  }

  .album-panel {
    border: 0;
    border-radius: 0;
    border-left: 0;
    height: 100dvh;
    max-width: 100vw;
    width: 100vw;
  }

  .photos-header {
    min-height: 64px;
    padding: 12px 14px;
  }

  .photos-shell {
    padding: 16px 10px 56px;
  }

  .photos-country-nav {
    gap: 7px;
    margin: -16px -10px 20px;
    padding: 10px;
    top: 64px;
  }

  .photos-country-button {
    font-size: 0.68rem;
    height: 34px;
    padding: 0 11px 0 5px;
  }

  .photos-country-button img,
  .photos-group-title img,
  .photos-country-fallback {
    height: 22px;
    width: 22px;
  }

  .photos-group {
    margin-top: 26px;
    scroll-margin-top: 126px;
  }

  .photos-group-title {
    font-size: 0.78rem;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .photos-grid {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-tile {
    border-radius: 7px;
  }

  .photo-tile:hover,
  .photo-tile:focus-visible {
    transform: none;
  }

  .photo-tile-video {
    font-size: 0.66rem;
    padding: 5px 8px;
    right: 6px;
    top: 6px;
  }

  .photo-viewer-stage {
    gap: 12px;
    height: 100dvh;
    max-width: calc(100vw - 28px);
    padding: 58px 0 22px;
  }

  .photo-viewer-media img,
  .photo-viewer-media video {
    max-height: 66dvh;
  }

  .photo-viewer-info {
    min-height: 86px;
  }

  .photo-viewer-info h2 {
    font-size: 1.75rem;
  }

  .photo-viewer-strip {
    display: none;
  }

  .photo-viewer-close {
    height: 44px;
    right: 14px;
    top: 14px;
    width: 44px;
  }

  .photo-viewer-nav {
    background: rgba(247, 242, 223, 0.82);
    font-size: 34px;
    height: 44px;
    top: 50%;
    width: 44px;
  }

  .photo-viewer-prev {
    left: 8px;
  }

  .photo-viewer-next {
    right: 8px;
  }
}

@media (max-width: 520px) {
  .photos-header {
    align-items: center;
    gap: 8px;
  }

  .album-panel .photos-header {
    align-items: center;
    flex-direction: row;
  }

  .photos-brand {
    font-size: 0.82rem;
  }

  .photos-nav {
    gap: 10px;
  }

  .album-close {
    height: 44px;
    width: 44px;
  }

  .photos-country-button {
    max-width: 52vw;
  }

  .photos-country-button span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .photo-viewer-info p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .album-viewer-open .photos-shell,
  .album-viewer-open .photos-header,
  .album-viewer-open .album-panel,
  .album-overlay-open .content,
  .album-overlay-open .background,
  .album-overlay-open .footer {
    filter: none;
    transform: none;
  }
}
