.gallery-page {
  background: #001321;
  color: #fff;
}
.photo-gallery {
  width: min(1280px, 90%);
  margin: 50px auto 80px;
}
.photo-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 44px;
}
.photo-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffe000;
}
.photo-hero h1 {
  font:
    italic 900 clamp(48px, 6vw, 84px)/0.98 "Barlow Semi Condensed",
    Impact,
    sans-serif;
  text-transform: uppercase;
  margin: 18px 0;
}
.photo-hero h1 em {
  color: #00bde9;
}
.photo-hero p:last-child {
  color: #afc9d5;
  font-size: 14px;
  line-height: 1.7;
}
.photo-toolbar {
  border-bottom: 1px solid #2a4859;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
}
.photo-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.photo-gallery button,
.photo-carousel-controls button {
  cursor: pointer;
  font:
    600 13px Montserrat,
    Arial,
    sans-serif;
  min-height: 44px;
}
.photo-tabs button,
.photo-more,
.photo-gallery form button:not(.button),
#photo-retry,
.photo-carousel-controls button {
  border: 1px solid #35586c;
  border-radius: 5px;
  background: #0b283b;
  color: #fff;
  padding: 10px 16px;
}
.photo-tabs button[aria-pressed="true"] {
  background: #ffe000;
  color: #001321;
  border-color: #ffe000;
}
.photo-gallery input:not([type="radio"]):not([type="checkbox"]),
.photo-gallery select,
.photo-gallery textarea {
  max-width: 100%;
  min-height: 44px;
  background: #082334;
  color: #fff;
  border: 1px solid #35586c;
  border-radius: 5px;
  font:
    14px Montserrat,
    Arial,
    sans-serif;
  padding: 11px;
}
.photo-gallery input::placeholder,
.photo-gallery textarea::placeholder {
  color: #9db5c4;
}
.photo-gallery select {
  max-width: 260px;
}
.photo-filters {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.photo-filters label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.photo-filters > span {
  color: #afc9d5;
  font-size: 12px;
  margin-left: auto;
  max-width: 430px;
  line-height: 1.6;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.photo-card {
  min-width: 0;
  border: 1px solid #234454;
  background: #082334;
  border-radius: 9px;
  overflow: hidden;
}
.photo-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #102f42;
  transition: filter 0.2s;
}
.photo-card-link:hover img {
  filter: brightness(1.12);
}
.photo-card-copy {
  padding: 18px;
}
.photo-card h3 {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.photo-card small {
  color: #afc9d5;
  font-size: 11px;
}
.photo-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #afc9d5;
}
.photo-stars {
  color: #ffe000;
  white-space: nowrap;
}
.photo-card-comment {
  border-top: 1px solid #234454;
  padding: 13px 18px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #b8d0dc;
  overflow-wrap: anywhere;
}
.photo-card-comment strong {
  color: #fff;
}
.photo-more {
  display: block;
  margin: 30px auto;
}
.photo-dialog {
  color: #fff;
  background: #082334;
  border: 1px solid #35586c;
  border-radius: 12px;
  padding: 32px;
  width: min(620px, 92vw);
  max-height: 90dvh;
  overflow: auto;
}
.photo-dialog::backdrop {
  background: #000c;
  backdrop-filter: blur(5px);
}
.photo-close {
  float: right;
  background: #173b51;
  border: 0;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 26px !important;
}
.photo-dialog h2 {
  font:
    italic 900 36px "Barlow Semi Condensed",
    Impact,
    sans-serif;
  margin: 12px 0 24px;
}
.photo-dialog form > label {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  font-size: 13px;
}
.photo-dialog label span,
.photo-dialog small {
  color: #afc9d5;
}
.photo-drop {
  border: 1px dashed #47819a;
  padding: 24px;
  border-radius: 8px;
}
.photo-dialog fieldset {
  border: 1px solid #35586c;
  padding: 16px;
  border-radius: 5px;
}
.photo-dialog fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
}
.photo-dialog input[type="radio"],
.photo-dialog input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #ffe000;
}
.photo-dialog [role="status"],
#upload-audience-note {
  font-size: 13px;
  line-height: 1.6;
  color: #c2d6df;
}
.photo-detail {
  width: min(1050px, 94vw);
}
.photo-detail-image {
  display: block;
  max-width: 100%;
  max-height: 60vh;
  margin: 14px auto;
  object-fit: contain;
  border-radius: 5px;
}
.photo-detail-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
  color: #b8d0dc;
}
.photo-vote {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 20px 0;
}
.photo-vote button {
  background: #173b51;
  border: 1px solid #547487;
  border-radius: 5px;
  color: #ffe000;
  padding: 9px 12px;
}
.photo-vote button:disabled {
  opacity: 0.65;
  cursor: default;
}
.photo-comments {
  list-style: none;
  padding: 0;
  border-top: 1px solid #35586c;
}
.photo-comments li {
  padding: 15px 0;
  border-bottom: 1px solid #234454;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.photo-comments small {
  display: block;
}
.photo-comments p {
  margin: 6px 0;
}
.photo-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.photo-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px 0 20px;
}
.photo-carousel .photo-card {
  flex: 0 0 min(360px, 85vw);
  scroll-snap-align: start;
}
.photo-carousel-controls {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.photo-gallery [hidden],
.photo-carousel [hidden] {
  display: none !important;
}
.photo-gallery :focus-visible,
.photo-carousel :focus-visible,
.photo-carousel-controls :focus-visible {
  outline: 3px solid #ffe000;
  outline-offset: 4px;
}
@media (max-width: 950px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .photo-toolbar {
    flex-direction: column;
  }
  .photo-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .photo-filters > span {
    margin: 0;
  }
}
@media (max-width: 560px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .photo-dialog {
    padding: 20px;
  }
  .photo-gallery {
    margin-top: 30px;
  }
  .photo-filters label {
    width: 100%;
    justify-content: space-between;
  }
  .photo-gallery select {
    max-width: 70%;
  }
  #photo-search-form {
    display: flex;
    gap: 8px;
  }
  #photo-search {
    min-width: 0;
    flex: 1;
  }
  .photo-dialog form > label select {
    max-width: 100%;
    width: 100%;
  }
  .photo-card img {
    aspect-ratio: 4/3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .photo-card img {
    transition: none;
  }
  .photo-carousel {
    scroll-behavior: auto;
  }
}
.photo-card img {
  height: auto;
}
.photo-card h3 {
  font:
    700 18px/1.4 Montserrat,
    Arial,
    sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.photo-hero h1 .photo-title-blue{color:#08c2ee}
.photo-hero h1 .photo-title-yellow{color:#ffe000}
