.featured-photo-section {
  position: relative;
  width: 100%;
  height: auto;
  padding: 5px 0;
}

.featured-photo-title {
  position: absolute;
  z-index: 3;
  top: 23px;
  left: 18px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 10px;
  background: rgba(17, 28, 35, .54);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.featured-photo-stage {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 625 / 390;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.featured-photo-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.featured-photo-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
}

.featured-photo-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 1.2s ease;
}

.featured-photo-slide:hover img,
.featured-photo-slide:focus-visible img {
  transform: scale(1.018);
}

.featured-photo-slide:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -3px;
}

.featured-photo-dots {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 14px;
  display: flex;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(22, 31, 37, .35);
  backdrop-filter: blur(8px);
}

.featured-photo-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .48);
  cursor: pointer;
  transition: width .25s ease, border-radius .25s ease, background .25s ease;
}

.featured-photo-dot.is-active {
  width: 17px;
  border-radius: 4px;
  background: #fff;
}

.featured-photo-status {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
}

.home-latest-photos { margin-bottom: 14px; }
.home-latest-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-latest-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 24 / 17; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.home-latest-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.home-latest-photo:hover img { transform: scale(1.04); }
.home-latest-photo:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.home-latest-photo-title { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, .26); border-radius: 6px; background: rgba(17, 28, 35, .54); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; pointer-events: none; backdrop-filter: blur(8px); }
.home-latest-photo-author { position: absolute; z-index: 1; bottom: 2.5px; left: 2.5px; max-width: calc(100% - 5px); overflow: hidden; color: #fff; font-size: 10px; font-weight: 400; line-height: 1; text-overflow: ellipsis; text-shadow: none; white-space: nowrap; pointer-events: none; }

@media (min-width: 761px) { .featured-photo-section { padding: 0; } .home-latest-photos { margin-bottom: 15px; } }

@media (max-width: 760px) { .home-latest-photos { display: none; } }

@media (max-width: 640px) {
  .featured-photo-title { top: 17px; left: 14px; padding: 8px 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .featured-photo-track,
  .featured-photo-slide img,
  .home-latest-photo img { transition: none; }
}
