/**
 * General EduTech Centre — Gallery Stylesheet
 * Architectural tokens: Navy (#12234A), Crimson (#BA2B3E), Paper (#FFFFFF), Mist (#F3F5F9)
 * Typography: Schibsted Grotesk, Hind Vadodara, Caveat, IBM Plex Mono
 */

/* View Transition Support */
@view-transition {
  navigation: auto;
}

/* Background Grid Pattern */
.gallery-page-main {
  background-color: #F8FAFC;
  background-image: radial-gradient(#CBD5E0 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 80vh;
  padding-bottom: 40px;
}

/* Progressive Develop Effect */
.develop-fade {
  opacity: 0;
  transition: opacity 0.45s ease-out;
}

.develop-fade.is-loaded {
  opacity: 1;
}

/* ==========================================
   SHELF MODE / HERO SECTION
   ========================================== */
.gallery-hero-section {
  padding: 48px 0 32px;
  text-align: center;
}

.gallery-hero-header {
  max-width: 760px;
  margin: 0 auto 36px;
}

.gallery-eyebrow-accent {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--crimson, #BA2B3E);
  background-color: #FFF5F5;
  border: 1px solid #FED7D7;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.gallery-title {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--navy, #12234A);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.gallery-subtitle {
  font-family: 'Hind Vadodara', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #4A5568;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Polaroid Desk Container */
.gallery-desk-container {
  position: relative;
  max-width: 820px;
  margin: 0 auto 20px;
  padding: 24px 16px 20px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(18, 35, 74, 0.04);
}

.gallery-desk-hint {
  text-align: right;
  padding-right: 20px;
  margin-bottom: -10px;
}

.desk-hint-text {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--crimson, #BA2B3E);
  transform: rotate(-3deg);
  display: inline-block;
}

.gallery-polaroid-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 20px 10px 30px;
  position: relative;
}

/* Drop-in Animation (plays once on initial load) */
@keyframes polaroidDropIn {
  0% {
    opacity: 0;
    transform: translateY(-40px) scale(0.92);
  }
  60% {
    transform: translateY(6px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gallery-polaroid-stage.has-drop-in .gallery-polaroid-card:nth-child(1) {
  animation: polaroidDropIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.gallery-polaroid-stage.has-drop-in .gallery-polaroid-card:nth-child(2) {
  animation: polaroidDropIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s forwards;
}

/* Polaroid Card */
.gallery-polaroid-card {
  position: relative;
  background: #FFFFFF;
  padding: 12px 12px 32px 12px;
  border-radius: 2px;
  box-shadow: 0 12px 28px -6px rgba(18, 35, 74, 0.16), 0 4px 10px -2px rgba(18, 35, 74, 0.08);
  border: 1px solid #E2E8F0;
  width: 310px;
  max-width: 90vw;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  outline: none;
}

.gallery-polaroid-card:focus-visible {
  outline: 2px dashed var(--crimson, #BA2B3E);
  outline-offset: 4px;
}

.gallery-polaroid-card.polaroid-pos-0 {
  transform: rotate(-3.5deg);
}

.gallery-polaroid-card.polaroid-pos-1 {
  transform: rotate(2.8deg);
}

.gallery-polaroid-card.polaroid-pos-2 {
  transform: rotate(-2deg);
}

.gallery-polaroid-card.polaroid-pos-3 {
  transform: rotate(3deg);
}

.gallery-polaroid-card:hover {
  transform: translateY(-8px) scale(1.02) rotate(0deg);
  box-shadow: 0 20px 35px -8px rgba(18, 35, 74, 0.24), 0 8px 16px -4px rgba(18, 35, 74, 0.12);
  z-index: 10;
}

.gallery-polaroid-card.is-dragging {
  cursor: grabbing;
  z-index: 50;
  box-shadow: 0 24px 45px -8px rgba(18, 35, 74, 0.3);
  transition: none;
}

/* Polaroid Pin */
.polaroid-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 35%, #FC8181, #C53030);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

.polaroid-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #EDF2F7;
  border: 1px solid #E2E8F0;
  border-radius: 1px;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-caption {
  margin-top: 14px;
  padding: 0 4px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.polaroid-handwriting {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1A202C;
  line-height: 1.2;
}

.polaroid-date-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #F7FAFC;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #E2E8F0;
}

/* Sparse Mode Banner */
.gallery-sparse-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #CBD5E0;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #4A5568;
  margin-top: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.sparse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #38A169;
  display: inline-block;
}

/* ==========================================
   THE SHELF SECTION
   ========================================== */
.gallery-shelf-section {
  padding: 36px 0 54px;
}

.shelf-header {
  margin-bottom: 24px;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 12px;
}

.shelf-heading {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy, #12234A);
}

.gallery-shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  perspective: 1000px;
}

/* Folder Card with 3D Fan Effect */
.gallery-folder-card {
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease;
  outline: none;
}

.gallery-folder-card:focus-visible {
  outline: 2px dashed var(--crimson, #BA2B3E);
  outline-offset: 4px;
}

.folder-tab {
  width: 150px;
  height: 32px;
  background-color: var(--folder-accent, #BA2B3E);
  color: #FFFFFF;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
}

.folder-tab-title {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-body {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #CBD5E0;
  border-radius: 0 12px 12px 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(18, 35, 74, 0.06);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Fan Stack Cards */
.folder-fan-stack {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.folder-fan-leaf {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 140px;
  background: #F7FAFC;
  border: 1px solid #CBD5E0;
  border-radius: 6px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.leaf-back {
  transform: rotate(-4deg) translateY(-2px);
}

.leaf-mid {
  transform: rotate(3deg) translateY(-4px);
}

.gallery-folder-card:hover .folder-fan-leaf {
  opacity: 0.85;
}

.gallery-folder-card:hover .leaf-back {
  transform: rotate(-6deg) translateY(-12px) scale(0.96);
}

.gallery-folder-card:hover .leaf-mid {
  transform: rotate(5deg) translateY(-8px) scale(0.98);
}

.gallery-folder-card:hover .folder-body {
  border-color: var(--folder-accent, #BA2B3E);
  box-shadow: 0 16px 32px rgba(18, 35, 74, 0.12);
}

.gallery-folder-card:hover {
  transform: translateY(-6px);
}

.folder-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #EDF2F7;
  overflow: hidden;
  z-index: 2;
}

.folder-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-folder-card:hover .folder-cover-img {
  transform: scale(1.05);
}

.folder-meta {
  padding: 20px;
  position: relative;
  z-index: 2;
  background: #FFFFFF;
}

.folder-title {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy, #12234A);
  margin-bottom: 6px;
}

.folder-desc {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.5;
  margin-bottom: 16px;
}

.folder-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #EDF2F7;
}

.folder-count-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy, #12234A);
  background: #F7FAFC;
  border: 1px solid #E2E8F0;
  padding: 3px 10px;
  border-radius: 12px;
}

.folder-updated-date {
  font-size: 12px;
  color: #718096;
}

/* ==========================================
   JUST ADDED STRIP
   ========================================== */
.gallery-just-added-section {
  padding: 24px 0 40px;
}

.just-added-header {
  margin-bottom: 16px;
}

.just-added-heading {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy, #12234A);
}

.just-added-scroll-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 16px;
  -webkit-overflow-scrolling: touch;
}

.just-added-tile {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.just-added-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(18, 35, 74, 0.1);
}

.just-added-tile:focus-visible {
  outline: 2px dashed var(--crimson, #BA2B3E);
}

.tile-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: #EDF2F7;
}

.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-new-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--crimson, #BA2B3E);
  color: #FFFFFF;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tile-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #2D3748;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================
   ALBUM MODE / CONTROLS & LAYOUT ENGINE
   ========================================== */
.gallery-album-view-section {
  padding: 36px 0 60px;
}

.album-breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb-link {
  font-family: 'Hind Vadodara', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #4A5568;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #FFFFFF;
  border: 1px solid #CBD5E0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--crimson, #BA2B3E);
  border-color: var(--crimson, #BA2B3E);
}

.album-view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 20px;
}

.album-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.album-title {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy, #12234A);
  line-height: 1.2;
}

.album-desc {
  font-size: 1.05rem;
  color: #4A5568;
  margin-top: 6px;
}

.album-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.album-sort-select {
  padding: 10px 14px;
  font-family: 'Hind Vadodara', sans-serif;
  font-size: 14px;
  border: 1px solid #CBD5E0;
  border-radius: 8px;
  background: #FFFFFF;
  color: #2D3748;
  cursor: pointer;
}

.btn-play-album {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  background: #FFFFFF;
  border: 1px solid #CBD5E0;
  color: var(--navy, #12234A);
  transition: all 0.2s ease;
}

.btn-play-album:hover {
  background: var(--navy, #12234A);
  color: #FFFFFF;
  border-color: var(--navy, #12234A);
}

/* ------------------------------------------
   Layout 1: Monitors (Hardware Walkthrough)
   ------------------------------------------ */
.layout-monitors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 40px;
}

.gallery-monitor-tile {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(18, 35, 74, 0.05);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.gallery-monitor-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(18, 35, 74, 0.12);
}

.gallery-monitor-tile:focus-visible {
  outline: 2px dashed var(--crimson, #BA2B3E);
  outline-offset: 4px;
}

.monitor-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monitor-bezel {
  width: 100%;
  background: linear-gradient(145deg, #2D3748, #1A202C);
  border-radius: 10px;
  padding: 12px 12px 8px 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.monitor-screen-area {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000000;
  border-radius: 3px;
  overflow: hidden;
}

.monitor-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screen-glare {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
}

.monitor-chin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px 2px;
}

.monitor-brand-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  color: #718096;
  letter-spacing: 0.08em;
}

.monitor-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #48BB78;
  box-shadow: 0 0 6px #48BB78;
}

.monitor-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -1px;
}

.stand-neck {
  width: 36px;
  height: 16px;
  background: linear-gradient(to right, #4A5568, #2D3748, #4A5568);
}

.stand-base {
  width: 130px;
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(to bottom, #718096, #2D3748);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.monitor-caption-bar {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #EDF2F7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.caption-text-group {
  display: flex;
  flex-direction: column;
}

.caption-primary {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy, #12234A);
}

.caption-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #718096;
  margin-top: 2px;
}

.photo-remove-btn {
  color: #A0AEC0;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.photo-remove-btn:hover {
  color: #E53E3E;
  background: #FFF5F5;
}

/* ------------------------------------------
   Layout 2: Picture Frames
   ------------------------------------------ */
.layout-frames {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 36px;
}

.gallery-frame-tile {
  background: #FFFFFF;
  border: 1px solid #CBD5E0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.gallery-frame-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(18, 35, 74, 0.12);
}

.frame-wood-bezel {
  background: #2D3748;
  padding: 8px;
  border-radius: 4px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.frame-matte {
  background: #F7FAFC;
  padding: 14px;
  border: 1px solid #E2E8F0;
}

.frame-img-box {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #EDF2F7;
}

.frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-plate {
  margin-top: 14px;
  text-align: center;
  border-top: 1px solid #E2E8F0;
  padding-top: 10px;
}

.frame-caption {
  font-size: 13px;
  font-weight: 600;
  color: #1A202C;
  display: block;
}

.frame-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #718096;
}

/* ------------------------------------------
   Layout 3: Scrapbook
   ------------------------------------------ */
.layout-scrapbook {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 36px;
}

.gallery-scrapbook-tile {
  position: relative;
  background: #FFFFFF;
  padding: 12px 12px 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.gallery-scrapbook-tile.tilt-0 { transform: rotate(-2deg); }
.gallery-scrapbook-tile.tilt-1 { transform: rotate(1.8deg); }
.gallery-scrapbook-tile.tilt-2 { transform: rotate(-1deg); }

.gallery-scrapbook-tile:hover {
  transform: rotate(0deg) scale(1.02);
  z-index: 5;
  box-shadow: 0 16px 32px rgba(18, 35, 74, 0.15);
}

.washi-tape {
  position: absolute;
  top: -10px;
  left: 30%;
  width: 80px;
  height: 22px;
  background: rgba(242, 182, 50, 0.65);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transform: rotate(-1.5deg);
  z-index: 2;
}

.scrapbook-img-box {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #EDF2F7;
}

.scrapbook-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scrapbook-caption-box {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scrapbook-caption {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1A202C;
}

.scrapbook-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #718096;
}

/* ------------------------------------------
   Layout 4: Justified Flexible Rows
   ------------------------------------------ */
.layout-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-row-tile {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #CBD5E0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.gallery-row-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(18, 35, 74, 0.12);
}

.row-img-wrap {
  width: 100%;
  height: 100%;
}

.row-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18, 35, 74, 0.92);
  color: #FFFFFF;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.row-caption {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #CBD5E0;
  margin-left: 10px;
}

/* Pagination hidden */
.is-paginated-hidden {
  display: none !important;
}

/* ==========================================
   PRIVACY SECTION & VISIT CTA
   ========================================== */
.gallery-privacy-section {
  padding: 30px 0 50px;
}

.privacy-note-card {
  max-width: 760px;
  margin: 0 auto 36px;
  background: #FFFFFF;
  border: 1px solid #CBD5E0;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.privacy-icon {
  color: #4A5568;
  flex-shrink: 0;
}

.privacy-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px;
}

.privacy-text {
  font-size: 14px;
  color: #2D3748;
  margin: 0;
}

.privacy-link {
  font-size: 13px;
  font-weight: 600;
  color: #2B6CB0;
  text-decoration: underline;
  white-space: nowrap;
}

.privacy-link:hover {
  color: #2C5282;
}

/* CTA Card */
.gallery-cta-card {
  max-width: 820px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 2px solid var(--crimson, #BA2B3E);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(186, 43, 62, 0.06);
}

.cta-title {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy, #12234A);
  margin-bottom: 8px;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: #4A5568;
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.cta-btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: 'Hind Vadodara', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.btn-primary {
  background-color: var(--crimson, #BA2B3E);
  color: #FFFFFF;
  border: 1px solid var(--crimson, #BA2B3E);
}

.btn-primary:hover {
  background-color: #9B1C2D;
  border-color: #9B1C2D;
}

.btn-outline {
  background-color: transparent;
  color: var(--navy, #12234A);
  border: 1px solid #CBD5E0;
}

.btn-outline:hover {
  background-color: #F7FAFC;
  border-color: var(--navy, #12234A);
}

/* ==========================================
   FULL-SCREEN VIEWER DIALOG
   ========================================== */
.gallery-viewer-dialog {
  border: none;
  background: rgba(10, 18, 38, 0.96);
  color: #FFFFFF;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  margin: 0;
  overflow: hidden;
  z-index: 99999;
}

.gallery-viewer-dialog::backdrop {
  background: rgba(10, 18, 38, 0.96);
}

.viewer-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.viewer-header {
  height: 56px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.viewer-counter {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #A0AEC0;
}

.viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewer-btn {
  background: transparent;
  border: none;
  color: #E2E8F0;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.viewer-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.viewer-close-btn {
  margin-left: 8px;
}

.viewer-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px 60px;
}

.viewer-image-container {
  max-width: 90vw;
  max-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.viewer-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  user-select: none;
  transition: transform 0.5s ease;
}

/* Ken Burns Subtle Slideshow Effect */
@keyframes kenBurnsZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08) translate(-1%, -1%);
  }
}

.viewer-img.ken-burns {
  animation: kenBurnsZoom 6s ease-in-out infinite alternate;
}

.viewer-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.viewer-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.viewer-prev {
  left: 20px;
}

.viewer-next {
  right: 20px;
}

.viewer-footer {
  min-height: 60px;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 10px;
}

.viewer-caption {
  font-size: 14px;
  color: #EDF2F7;
  margin: 0;
}

.viewer-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #A0AEC0;
  display: block;
  margin-top: 2px;
}

.viewer-privacy-action {
  display: flex;
  align-items: center;
}

.viewer-remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FEB2B2;
  text-decoration: none;
  font-size: 12px;
  padding: 6px 12px;
  background: rgba(229, 62, 62, 0.15);
  border: 1px solid rgba(229, 62, 62, 0.3);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.viewer-remove-btn:hover {
  background: rgba(229, 62, 62, 0.3);
}

/* ==========================================
   404 NOT FOUND VIEW
   ========================================== */
.gallery-not-found-main {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.not-found-box {
  background: #FFFFFF;
  border: 1px solid #CBD5E0;
  border-radius: 12px;
  padding: 40px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.not-found-box .mono-code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--crimson, #BA2B3E);
  display: block;
  margin-bottom: 8px;
}

.not-found-box h1 {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 1.5rem;
  color: var(--navy, #12234A);
  margin-bottom: 12px;
}

.not-found-box p {
  color: #4A5568;
  margin-bottom: 24px;
}

/* ==========================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  .gallery-polaroid-card,
  .gallery-folder-card,
  .folder-cover-img,
  .gallery-monitor-tile,
  .gallery-frame-tile,
  .gallery-scrapbook-tile,
  .gallery-row-tile,
  .btn,
  .develop-fade {
    animation: none !important;
    transition: none !important;
  }
  .viewer-img.ken-burns {
    animation: none !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .gallery-hero-section {
    padding: 32px 0 20px;
  }
  .gallery-polaroid-stage {
    gap: 20px;
    padding: 10px 0 20px;
  }
  .gallery-polaroid-card {
    width: 280px;
  }
  .gallery-shelf-grid {
    grid-template-columns: 1fr;
  }
  .layout-monitors,
  .layout-frames,
  .layout-scrapbook {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .viewer-stage {
    padding: 10px 10px;
  }
  .viewer-nav-btn {
    width: 38px;
    height: 38px;
  }
  .viewer-prev {
    left: 8px;
  }
  .viewer-next {
    right: 8px;
  }
}
