.sg-photos { min-height: 70vh; padding: calc(var(--sg-header-height) + 62px) 0 110px; }
.sg-photos--inner, .sg-photo-detail { padding-top: calc(var(--sg-header-height) + 38px); }
.sg-photos__hero { max-width: 850px; margin: 0 auto 38px; text-align: center; }
.sg-photos__hero--compact { margin-bottom: 34px; }
.sg-photos__hero h1 { margin: 0; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: .98; letter-spacing: -.055em; }
.sg-photos__hero p { max-width: 720px; margin: 20px auto 0; color: var(--sg-muted); font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.6; }
.sg-photos__eyebrow { margin: 0 0 12px !important; background: var(--sg-gradient); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-size: .76rem !important; font-weight: 760; letter-spacing: .14em; text-transform: uppercase; }
.sg-photos__description { margin-top: 20px; color: var(--sg-muted); line-height: 1.7; }
.sg-photos__tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 55px; }
.sg-photos__tabs a { padding: 11px 19px; border: 1px solid transparent; border-radius: 999px; color: var(--sg-muted); font-size: .88rem; font-weight: 650; }
.sg-photos__tabs a:hover, .sg-photos__tabs a.is-active { border-color: var(--sg-border); background: color-mix(in srgb, var(--sg-surface) 52%, transparent); color: var(--sg-text); }
.sg-photos__section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.sg-photos__section-head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.035em; }
.sg-photos__section-head > span { color: var(--sg-muted); font-size: .84rem; }
.sg-photo-albums { margin-bottom: 80px; }
.sg-photo-albums__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sg-photo-albums__grid--children { margin-bottom: 48px; }
.sg-photo-album { position: relative; min-height: 260px; overflow: hidden; border: 1px solid var(--sg-border); border-radius: var(--sg-radius-lg); background: var(--sg-surface); box-shadow: var(--sg-shadow); }
.sg-photo-album__image, .sg-photo-album__placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.sg-photo-album__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.sg-photo-album:hover .sg-photo-album__image img { transform: scale(1.04); }
.sg-photo-album__placeholder { background: linear-gradient(135deg, color-mix(in srgb, var(--sg-accent-a) 18%, var(--sg-surface)), var(--sg-surface)); color: var(--sg-accent-a); font-size: 2.2rem; }
.sg-photo-album__overlay { position: absolute; inset: auto 0 0; display: grid; gap: 4px; padding: 42px 24px 23px; background: linear-gradient(transparent, rgba(0,0,0,.84)); color: #fff8e8; }
.sg-photo-album__overlay strong { font-size: 1.18rem; }
.sg-photo-album__overlay small { color: #d6c4a5; }
.sg-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sg-photo-card { position: relative; min-width: 0; }
.sg-photo-card > a { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--sg-border); border-radius: var(--sg-radius-md); background: var(--sg-surface); box-shadow: 0 15px 42px rgba(0,0,0,.18); }
.sg-photo-card__media { position: absolute; inset: 0; }
.sg-photo-card__media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .42s ease, filter .42s ease; }
.sg-photo-card:hover img { transform: scale(1.045); filter: saturate(1.05); }
.sg-photo-card__shade { position: absolute; inset: 38% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.84)); }
.sg-photo-card__copy { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: grid; gap: 5px; padding: 23px 20px; color: #fff8e8; }
.sg-photo-card__copy strong { font-size: 1.05rem; line-height: 1.25; }
.sg-photo-card__copy small { display: -webkit-box; overflow: hidden; color: #d6c4a5; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sg-photo-card__stack { position: absolute; z-index: 3; top: 13px; right: 13px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(10,10,10,.62); color: #fff; font-size: .72rem; backdrop-filter: blur(10px); }
.sg-photos__back { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 28px; color: var(--sg-accent-a); font-size: .86rem; font-weight: 650; }
.sg-photos__back:hover { color: var(--sg-text); }
.sg-photos-empty { display: grid; min-height: 330px; place-items: center; align-content: center; gap: 10px; padding: 40px; text-align: center; }
.sg-photos-empty__icon { display: grid; width: 64px; height: 64px; place-items: center; margin-bottom: 7px; border: 1px solid var(--sg-border); border-radius: 50%; color: var(--sg-accent-a); font-size: 1.4rem; }
.sg-photos-empty h2 { margin: 0; font-size: 1.7rem; }
.sg-photos-empty p { max-width: 470px; margin: 0; color: var(--sg-muted); }
.sg-photos-paging { margin-top: 38px; }
.sg-photos-pagination { display: flex; justify-content: center; gap: 7px; padding: 0; list-style: none; }
.sg-photos-pagination a, .sg-photos-pagination li.selected { display: grid; min-width: 42px; height: 42px; place-items: center; padding: 0 10px; border: 1px solid var(--sg-border); border-radius: 50%; color: var(--sg-muted); }
.sg-photos-pagination li.selected { background: var(--sg-gradient); color: #1a1208; }
.sg-photos-load { display: none; justify-content: center; margin-top: 32px; }
.sg-has-js .sg-photos-load.is-ready { display: flex; }
.sg-has-js .sg-photos-load.is-ready + .sg-photos-paging, .sg-has-js .sg-photos-paging.is-hidden { display: none; }
.sg-photo-detail__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .72fr); align-items: start; gap: 28px; }
.sg-photo-detail__visual { min-width: 0; }
.sg-photo-detail__image { position: relative; display: grid; min-height: 540px; overflow: hidden; place-items: center; border: 1px solid var(--sg-border); border-radius: var(--sg-radius-lg); background: #050505; box-shadow: var(--sg-shadow); }
.sg-photo-detail__image img { display: block; max-width: 100%; max-height: min(72vh, 860px); width: auto; height: auto !important; object-fit: contain; }
.sg-photo-detail__next { position: absolute; right: 18px; bottom: 18px; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(10,10,10,.58); color: #fff; backdrop-filter: blur(12px); }
.sg-photo-detail__info { position: sticky; top: calc(var(--sg-header-height) + 24px); padding: 30px; }
.sg-photo-detail__info h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -.045em; }
.sg-photo-detail__description { margin-top: 18px; color: var(--sg-muted); line-height: 1.7; }
.sg-photo-detail__meta { display: grid; gap: 0; margin: 28px 0 0; }
.sg-photo-detail__meta > div { display: grid; gap: 6px; padding: 15px 0; border-top: 1px solid var(--sg-border); }
.sg-photo-detail__meta dt { color: var(--sg-muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sg-photo-detail__meta dd { margin: 0; color: var(--sg-text); }
.sg-photo-detail__meta a, .sg-photo-detail__author a { color: var(--sg-accent-a); }
.sg-photo-detail__author, .sg-photo-detail__exif { margin-top: 18px; color: var(--sg-muted); font-size: .82rem; line-height: 1.6; }
.sg-photo-detail__stream { overflow: hidden; margin-top: 18px; padding: 14px; border: 1px solid var(--sg-border); border-radius: var(--sg-radius-md); }
.sg-photo-detail__stream .photostream { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sg-photo-detail__stream .stream-wrapper { overflow: hidden; flex: 1; }
.sg-photo-detail__stream .stream-wrapper > ul { display: flex; gap: 8px; }
.sg-photo-detail__stream li:not(.stream-nav) img:first-child { width: 66px; height: 66px !important; border: 1px solid transparent; border-radius: 10px; object-fit: cover; }
.sg-photo-detail__stream li.selected img:first-child { border-color: var(--sg-accent-a); }
.sg-photo-detail__stream .stream-nav { display: none; }
.sg-photo-detail__plugin { margin-top: 26px; padding: 24px; border: 1px solid var(--sg-border); border-radius: var(--sg-radius-md); background: var(--sg-glass); }
.sg-photo-page { max-width: 980px; margin: 0 auto; padding: clamp(28px, 5vw, 62px); }
.sg-photo-page h1 { margin-top: 0; font-size: clamp(2.5rem, 5vw, 4.4rem); }
.sg-photo-page__content { color: var(--sg-muted); line-height: 1.8; }
@media (max-width: 1020px) {
  .sg-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sg-photo-detail__grid { grid-template-columns: 1fr; }
  .sg-photo-detail__info { position: static; }
}
@media (max-width: 760px) {
  .sg-photos { padding: calc(var(--sg-header-height) + 36px) 0 78px; }
  .sg-photo-albums__grid { grid-template-columns: 1fr; }
  .sg-photo-album { min-height: 220px; }
  .sg-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .sg-photo-card__copy { padding: 17px 14px; }
  .sg-photo-card__copy small { display: none; }
  .sg-photo-detail__image { min-height: 360px; border-radius: var(--sg-radius-md); }
  .sg-photo-detail__info { padding: 24px; }
}
@media (max-width: 420px) {
  .sg-photo-grid { grid-template-columns: 1fr; }
  .sg-photo-card > a { aspect-ratio: 4 / 4.7; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-photo-card__media img, .sg-photo-album__image img { transition: none; }
}
