/* EASY SERVE public gallery — loaded only on gallery routes. */
.gallery-hero {
  position: relative;
  padding-block: clamp(82px, 10vw, 145px) clamp(64px, 8vw, 108px);
}
.gallery-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% -18% auto 42%;
  height: 520px;
  background: radial-gradient(circle, rgba(124,58,237,.32), rgba(168,85,247,.07) 36%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.gallery-hero-grid { display: grid; grid-template-columns: minmax(0,1.16fr) minmax(310px,.58fr); gap: clamp(48px,8vw,120px); align-items: center; }
.gallery-hero h1 { margin-bottom: 25px; font-size: clamp(3.5rem,7vw,7.7rem); }
.gallery-hero h1 + p { max-width: 690px; color: var(--muted); font-size: clamp(1rem,1.4vw,1.17rem); line-height: 1.8; }
.gallery-hero-orbit { position: relative; width: min(350px,100%); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; border: 1px solid rgba(168,85,247,.2); border-radius: 50%; }
.gallery-hero-orbit::before, .gallery-hero-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.gallery-hero-orbit::before { inset: 13%; border: 1px solid rgba(168,85,247,.28); }
.gallery-hero-orbit::after { inset: 29%; background: radial-gradient(circle at 34% 26%,rgba(255,255,255,.13),rgba(17,21,41,.92)); border: 1px solid rgba(168,85,247,.34); box-shadow: 0 0 70px rgba(124,58,237,.35); }
.gallery-hero-orbit > span { position: absolute; z-index: 2; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 18px currentColor; }
.gallery-hero-orbit > span:nth-child(1) { top: 5%; left: 49%; color: var(--cyan); background: currentColor; }
.gallery-hero-orbit > span:nth-child(2) { right: 7%; bottom: 25%; color: var(--green); background: currentColor; }
.gallery-hero-orbit > span:nth-child(3) { left: 13%; bottom: 17%; color: var(--lime); background: currentColor; }
.gallery-hero-orbit strong { position: relative; z-index: 3; display: grid; color: white; font-size: clamp(2.5rem,5vw,4.3rem); line-height: 1; text-align: center; letter-spacing: -.06em; }
.gallery-hero-orbit small { margin-top: 9px; color: #8798ba; font-size: .61rem; letter-spacing: .16em; text-transform: uppercase; }

.gallery-albums-section { padding-block: 45px 125px; }
.gallery-section-heading { margin-bottom: 45px; display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.46fr); gap: 50px; align-items: end; }
.gallery-section-heading h2 { font-size: clamp(2.4rem,4.6vw,4.9rem); }
.gallery-section-heading > p { margin: 0 0 8px; color: var(--muted); line-height: 1.8; }
.gallery-album-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 20px; }
.gallery-album-card { grid-column: span 4; overflow: hidden; background: linear-gradient(150deg,rgba(17,21,41,.86),rgba(17,21,41,.94)); border: 1px solid var(--line); border-radius: 23px; box-shadow: 0 22px 65px rgba(5,12,20,.2); transition: transform .3s,border-color .3s,box-shadow .3s; }
.gallery-album-card:nth-child(7n+1), .gallery-album-card:nth-child(7n+5) { grid-column: span 8; }
.gallery-album-card:hover { transform: translateY(-5px); border-color: rgba(168,85,247,.46); box-shadow: 0 30px 80px rgba(5,12,20,.3); }
.gallery-album-visual { position: relative; min-height: 310px; display: block; overflow: hidden; background: #111529; }
.gallery-album-card:nth-child(7n+1) .gallery-album-visual, .gallery-album-card:nth-child(7n+5) .gallery-album-visual { min-height: 390px; }
.gallery-album-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.gallery-album-card:hover img { transform: scale(1.04); }
.gallery-album-shade { position: absolute; inset: 0; background: linear-gradient(to top,rgba(4,8,20,.58),transparent 55%); }
.gallery-album-count { position: absolute; right: 16px; top: 16px; padding: 7px 11px; color: #e6edfa; background: rgba(6,10,24,.72); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; backdrop-filter: blur(12px); font-size: .66rem; font-weight: 700; }
.gallery-album-no-image { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(168,85,247,.62); background: radial-gradient(circle,rgba(168,85,247,.1),transparent 56%); font-size: 4rem; }
.gallery-album-copy { padding: 23px 24px 25px; }
.gallery-album-copy p { margin: 0 0 6px; color: var(--cyan); font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.gallery-album-copy h3 { margin: 0; font-size: clamp(1.2rem,2vw,1.65rem); }
.gallery-album-copy h3 a:focus-visible, .gallery-album-visual:focus-visible { outline: 3px solid rgba(168,85,247,.72); outline-offset: 3px; }
.gallery-album-copy > span { margin-top: 19px; display: flex; justify-content: space-between; color: #8594b1; font-size: .72rem; font-weight: 700; }
.gallery-album-copy b { color: var(--lime); font-size: 1rem; }
.gallery-public-empty { grid-column: 1/-1; min-height: 330px; padding: 50px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #7f8ba4; background: rgba(255,255,255,.018); border: 1px dashed rgba(255,255,255,.15); border-radius: 24px; text-align: center; }
.gallery-public-empty > span { color: var(--lime); font-size: 2.8rem; }
.gallery-public-empty h2 { margin: 12px 0 8px; color: #e8edf7; font-size: 1.6rem; }

.gallery-detail-hero { position: relative; padding-block: 75px 62px; overflow: hidden; }
.gallery-detail-hero::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -130px; top: -250px; border-radius: 50%; background: rgba(124,58,237,.3); filter: blur(95px); }
.gallery-breadcrumb { margin-bottom: 54px; display: flex; flex-wrap: wrap; gap: 10px; color: #7788a8; font-size: .72rem; }
.gallery-breadcrumb a { color: #aebad0; }.gallery-breadcrumb a:hover { color: white; }
.gallery-detail-heading { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.58fr); gap: 70px; align-items: end; }
.gallery-detail-heading h1 { margin-bottom: 0; font-size: clamp(3.1rem,6.4vw,7rem); }
.gallery-detail-heading > p { margin: 0 0 7px; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.gallery-photo-section { padding-block: 28px 130px; }
.gallery-photo-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 18px; align-items: start; }
.gallery-photo-card { grid-column: span 4; margin: 0; }
.gallery-photo-card.gallery-photo-wide { grid-column: span 8; }
.gallery-photo-button { position: relative; width: 100%; aspect-ratio: 4/3; padding: 0; display: block; overflow: hidden; color: inherit; background: #111529; border: 1px solid var(--line); border-radius: 20px; cursor: zoom-in; }
.gallery-photo-wide .gallery-photo-button { aspect-ratio: 2/1; }
.gallery-photo-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1),filter .35s; }
.gallery-photo-overlay { position: absolute; inset: 0; padding: 18px; display: flex; align-items: flex-end; justify-content: space-between; opacity: 0; background: linear-gradient(to top,rgba(4,7,19,.75),transparent 65%); transition: opacity .25s; }
.gallery-photo-overlay b { width: 39px; height: 39px; display: grid; place-items: center; color: #070914; background: var(--lime); border-radius: 50%; }
.gallery-photo-overlay span { color: white; font-size: .7rem; font-weight: 700; }
.gallery-photo-button:hover img { transform: scale(1.035); filter: saturate(1.08); }
.gallery-photo-button:hover .gallery-photo-overlay, .gallery-photo-button:focus-visible .gallery-photo-overlay { opacity: 1; }
.gallery-photo-button:focus-visible { outline: 3px solid rgba(168,85,247,.72); outline-offset: 3px; }
.gallery-photo-card figcaption { padding: 11px 4px 0; color: #8493b0; font-size: .72rem; line-height: 1.6; }

.gallery-lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; color: white; background: rgba(3,5,13,.93); border: 0; }
.gallery-lightbox::backdrop { background: rgba(3,5,13,.92); backdrop-filter: blur(17px); }
.gallery-lightbox-shell { position: relative; width: 100%; height: 100%; padding: 65px clamp(55px,8vw,130px) 42px; display: grid; place-items: center; }
.gallery-lightbox-toolbar { position: absolute; z-index: 2; inset: 17px 22px auto; display: flex; align-items: center; justify-content: space-between; color: #99a6bd; font-size: .7rem; }
.gallery-lightbox-toolbar button { width: 43px; height: 43px; padding: 0; color: white; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 50%; cursor: pointer; font-size: 1.7rem; }
.gallery-lightbox figure { width: min(1180px,100%); height: calc(100vh - 110px); margin: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; gap: 13px; place-items: center; }
.gallery-lightbox figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.gallery-lightbox figcaption { min-height: 25px; color: #b7c1d3; font-size: .8rem; text-align: center; }
.gallery-lightbox-nav { position: absolute; z-index: 3; top: 50%; width: 48px; height: 48px; padding: 0; display: grid; place-items: center; color: white; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 50%; transform: translateY(-50%); cursor: pointer; }
.gallery-lightbox-prev { left: 20px; }.gallery-lightbox-next { right: 20px; }
.gallery-lightbox button:hover { background: rgba(255,255,255,.13); }
.gallery-lightbox button:focus-visible { outline: 3px solid rgba(168,85,247,.78); outline-offset: 3px; }

@media (max-width: 940px) {
  .gallery-hero-grid, .gallery-detail-heading { grid-template-columns: 1fr; }
  .gallery-hero-orbit { width: min(290px,80vw); }
  .gallery-section-heading { grid-template-columns: 1fr; gap: 20px; }
  .gallery-album-card, .gallery-album-card:nth-child(7n+1), .gallery-album-card:nth-child(7n+5) { grid-column: span 6; }
  .gallery-album-visual, .gallery-album-card:nth-child(7n+1) .gallery-album-visual, .gallery-album-card:nth-child(7n+5) .gallery-album-visual { min-height: 320px; }
  .gallery-photo-card, .gallery-photo-card.gallery-photo-wide { grid-column: span 6; }
  .gallery-photo-wide .gallery-photo-button { aspect-ratio: 4/3; }
}
@media (max-width: 640px) {
  .gallery-hero { padding-top: 67px; }.gallery-hero-orbit { display: none; }
  .gallery-albums-section, .gallery-photo-section { padding-bottom: 85px; }
  .gallery-album-grid, .gallery-photo-grid { gap: 14px; }
  .gallery-album-card, .gallery-album-card:nth-child(7n+1), .gallery-album-card:nth-child(7n+5), .gallery-photo-card, .gallery-photo-card.gallery-photo-wide { grid-column: 1/-1; }
  .gallery-album-visual, .gallery-album-card:nth-child(7n+1) .gallery-album-visual, .gallery-album-card:nth-child(7n+5) .gallery-album-visual { min-height: 280px; }
  .gallery-detail-hero { padding-top: 52px; }.gallery-breadcrumb { margin-bottom: 36px; }
  .gallery-detail-heading { gap: 25px; }
  .gallery-lightbox-shell { padding: 62px 15px 44px; }
  .gallery-lightbox-nav { top: auto; bottom: 16px; }.gallery-lightbox-prev { left: calc(50% - 60px); }.gallery-lightbox-next { right: calc(50% - 60px); }
  .gallery-lightbox figure { height: calc(100vh - 135px); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-album-card, .gallery-album-visual img, .gallery-photo-button img, .gallery-photo-overlay { transition: none; }
  .gallery-album-card:hover, .gallery-album-card:hover img, .gallery-photo-button:hover img { transform: none; }
}
