/* src/css/photography-layout.css */
:root {
  --photo-bg: #ffffff;
  --photo-bg-secondary: #f7f7f7;
  --photo-bg-tertiary: #f0f0f0;
  --photo-text: #333333;
  --photo-text-strong: #000000;
  --photo-text-secondary: #555555;
  --photo-text-muted: #888888;
  --photo-border: #eeeeee;
  --photo-border-light: rgba(0, 0, 0, 0.06);
  --photo-shadow: rgba(0, 0, 0, 0.08);
  --photo-shadow-hover: rgba(0, 0, 0, 0.15);
  --photo-transition: cubic-bezier(0.4, 0, 0.2, 1);
}
body.photography-layout {
  background-color: var(--photo-bg);
  color: var(--photo-text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}
body.photography-layout .container {
  max-width: 100%;
  padding: 0;
}
body.photography-layout .site-header-spacer {
  display: none;
}
body.photography-layout .site-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.photography-layout .mobile-nav-toggle {
  color: var(--photo-text);
}
body.photography-layout main {
  padding-top: 0;
  min-height: 100vh;
}
.photography-layout .photography-page {
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.photography-layout .photography-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px 80px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(
      180deg,
      var(--photo-bg-secondary) 0%,
      var(--photo-bg) 100%);
}
.photography-layout .photography-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.photography-layout .photography-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  filter: saturate(0.95) contrast(0.96);
}
.photography-layout .photography-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.24) 0%,
      rgba(10, 10, 10, 0.46) 100%),
    radial-gradient(
      ellipse at 20% 30%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%),
    radial-gradient(
      ellipse at 80% 70%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 50%);
  pointer-events: none;
  z-index: -1;
}
.photography-layout .photography-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      var(--photo-bg) 100%);
  pointer-events: none;
  z-index: 0;
}
.photography-layout .photography-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
}
.photography-layout .photography-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.photography-layout .photography-gallery {
  display: block;
  padding: 20px 16px 0;
  background: var(--photo-bg);
  max-width: 1240px;
  margin: 0 auto;
}
.photography-layout .photography-year-grid {
  column-count: var(--photography-columns, 3);
  column-gap: 14px;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .photography-layout .photography-year-grid {
    column-count: 2;
    column-gap: 6px;
  }
}
@media (max-width: 480px) {
  .photography-layout .photography-year-grid {
    column-count: 1;
    column-gap: 0;
  }
}
.photography-layout .photography-year-heading {
  margin: 0 0 1.25rem;
  padding: 0 0 0.15rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--photo-text-strong);
  line-height: 1;
}
.photography-layout .photography-item {
  break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  position: relative;
  margin: 0 0 14px;
  overflow: hidden;
  background: var(--photo-bg-secondary);
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 30px rgba(15, 15, 15, 0.08);
  transition:
    transform 0.3s var(--photo-transition),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.photography-layout .photography-item:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 40px rgba(15, 15, 15, 0.14);
}
.photography-layout .photography-item img {
  width: 100%;
  height: auto;
  max-height: min(68vh, 560px);
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--photo-transition);
}
.photography-layout .photography-item:hover img {
  transform: scale(1.05);
}
.photography-layout .photography-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.08) 62%,
      transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.photography-layout .photography-item:hover .photography-overlay {
  opacity: 1;
}
.photography-layout .photography-caption {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 500;
  transform: translateY(10px);
  transition: transform 0.3s var(--photo-transition);
}
.photography-layout .photography-item:hover .photography-caption {
  transform: translateY(0);
}
.photography-layout .photography-meta {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.45rem;
  transform: translateY(10px);
  transition: transform 0.3s var(--photo-transition) 0.05s;
}
.photography-layout .photography-item:hover .photography-meta {
  transform: translateY(0);
}
.photography-layout .photography-view-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s var(--photo-transition);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.photography-layout .photography-item:hover .photography-view-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.photography-layout .photography-view-icon svg {
  width: 24px;
  height: 24px;
  color: var(--photo-text-strong);
}
.photography-layout .photography-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--photo-text-secondary);
}
.photography-layout .photography-empty-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  color: var(--photo-text-muted);
}
.photography-layout .photography-empty p {
  font-size: 1.125rem;
  color: var(--photo-text-secondary);
}
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}
.photo-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.photo-lightbox-image-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-lightbox img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  transition: transform 0.1s ease-out;
  cursor: default;
}
.photo-lightbox img[style*="scale(1)"],
.photo-lightbox img:not([style*=scale]) {
  cursor: default;
}
.photo-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}
.photo-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
.photo-lightbox-close svg {
  width: 20px;
  height: 20px;
}
.photo-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0;
  z-index: 10;
}
.photo-lightbox:hover .photo-lightbox-nav {
  opacity: 1;
}
.photo-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.photo-lightbox-nav.prev {
  left: 24px;
}
.photo-lightbox-nav.next {
  right: 24px;
}
.photo-lightbox-nav svg {
  width: 24px;
  height: 24px;
}
.photo-lightbox-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.8) 0%,
      transparent 100%);
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.photo-lightbox.active .photo-lightbox-info {
  transform: translateY(0);
}
.photo-lightbox-caption {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.photo-lightbox-counter {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}
body.photography-layout .site-footer {
  background: transparent;
  border-top: 1px solid var(--photo-border);
  color: var(--photo-text-muted);
  padding: 3rem 2rem;
  text-align: center;
}
body.photography-layout .site-footer p {
  font-size: 0.875rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .photography-layout .photography-hero {
    min-height: 40vh;
    padding: 0 20px 60px;
  }
  .photography-layout .photography-title {
    font-size: 2rem;
  }
  .photography-layout .photography-gallery {
    padding: 16px 12px 0;
  }
  .photography-layout .photography-item {
    border-radius: 6px;
    margin-bottom: 10px;
  }
  .photography-layout .photography-item img {
    max-height: min(60vh, 440px);
  }
  .photography-layout .photography-year-grid {
    column-gap: 10px;
    margin-bottom: 2.2rem;
  }
  .photography-layout .photography-year-heading {
    margin-bottom: 1rem;
    font-size: clamp(1.35rem, 5vw, 1.8rem);
  }
  .photo-lightbox-nav {
    display: none;
  }
  .photo-lightbox-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 480px) {
  .photography-layout .photography-overlay {
    opacity: 1;
    background:
      linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6) 0%,
        transparent 60%);
  }
  .photography-layout .photography-item img {
    max-height: 360px;
  }
  .photography-layout .photography-gallery {
    padding: 14px 10px 0;
  }
  .photography-layout .photography-year-heading {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
  }
  .photography-layout .photography-caption,
  .photography-layout .photography-meta {
    transform: translateY(0);
  }
  .photography-layout .photography-view-icon {
    display: none;
  }
}
.photography-layout .photography-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}
.photography-layout .photography-item:nth-child(1) {
  animation-delay: 0.05s;
}
.photography-layout .photography-item:nth-child(2) {
  animation-delay: 0.1s;
}
.photography-layout .photography-item:nth-child(3) {
  animation-delay: 0.15s;
}
.photography-layout .photography-item:nth-child(4) {
  animation-delay: 0.2s;
}
.photography-layout .photography-item:nth-child(5) {
  animation-delay: 0.25s;
}
.photography-layout .photography-item:nth-child(6) {
  animation-delay: 0.3s;
}
.photography-layout .photography-item:nth-child(7) {
  animation-delay: 0.35s;
}
.photography-layout .photography-item:nth-child(8) {
  animation-delay: 0.4s;
}
.photography-layout .photography-item:nth-child(9) {
  animation-delay: 0.45s;
}
.photography-layout .photography-item:nth-child(10) {
  animation-delay: 0.5s;
}
.photography-layout .photography-item:nth-child(n+11) {
  animation-delay: 0.55s;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.photography-layout .photography-item img {
  background:
    linear-gradient(
      110deg,
      var(--photo-bg-secondary) 8%,
      var(--photo-bg-tertiary) 18%,
      var(--photo-bg-secondary) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}
.photography-layout .photography-item img[src] {
  animation: none;
  background: transparent;
}
@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}
