.gallery-page,
.gallery-page *::before,
.gallery-page *::after {
  box-sizing: border-box;
}

.gallery-page {
  --gallery-black: #0a0a0a;
  --gallery-orange: #e8821e;
  --gallery-white: #f5f5f0;
  --gallery-gray: #1a1a1a;
  --gallery-gray-mid: #2a2a2a;
  --gallery-text-muted: #888;

  background: var(--gallery-black);
  color: var(--gallery-white);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.7;
  overflow: hidden;
  position: relative;
}

body.page-template-page-gallery {
  background: var(--gallery-black, #0a0a0a);
}

@media (pointer: fine) {
  .gallery-page {
    cursor: none;
  }
}

.gallery-cursor,
.gallery-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
}

.gallery-cursor {
  width: 12px;
  height: 12px;
  background: var(--gallery-orange);
  border-radius: 50%;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

.gallery-cursor.is-hovering {
  opacity: 0.7;
}

.gallery-cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(232, 130, 30, 0.5);
  border-radius: 50%;
  z-index: 9998;
  transition: transform 0.15s ease, width 0.3s, height 0.3s, opacity 0.3s;
}

@media (pointer: coarse) {
  .gallery-cursor,
  .gallery-cursor-ring {
    display: none;
  }
}

.gallery-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  z-index: 90;
  mix-blend-mode: difference;
}

.gallery-nav__logo {
  color: var(--gallery-white);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  line-height: 1;
  text-decoration: none;
}

.gallery-nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-nav__links a {
  color: var(--gallery-white);
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  opacity: 0.6;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.3s, color 0.3s;
}

.gallery-nav__links a:hover,
.gallery-nav__links a.active {
  opacity: 1;
}

.gallery-nav__links a.active {
  color: var(--gallery-orange);
}

.gallery-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-hero__bg,
.gallery-hero__grid,
.gallery-hero__noise {
  position: absolute;
  inset: 0;
}

.gallery-hero__bg {
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #1a0d00 0%, var(--gallery-black) 70%);
}

.gallery-hero__grid {
  background-image:
    linear-gradient(rgba(232, 130, 30, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 130, 30, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(800px) rotateX(20deg) scale(1.4);
  transform-origin: 50% 100%;
}

.gallery-hero__noise {
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.gallery-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.gallery-hero__eyebrow,
.gallery-hero__scroll span,
.gallery-section-label,
.gallery-featured__count,
.gallery-work-item__cat,
.gallery-work-item__year,
.gallery-tag,
.gallery-cta__btn,
.gallery-footer__copy {
  font-family: "Space Mono", monospace;
}

.gallery-hero__eyebrow {
  color: var(--gallery-orange);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  margin: 0 0 24px;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(20px);
  animation: galleryFadeUp 0.8s 0.3s forwards;
}

.gallery-hero__title {
  color: var(--gallery-white);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(5rem, 15vw, 14rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 0.9;
  margin: 0;
  opacity: 0;
  transform: translateY(40px);
  animation: galleryFadeUp 0.9s 0.5s forwards;
}

.gallery-hero__title span,
.gallery-parallax__title em,
.gallery-cta__title em {
  color: var(--gallery-orange);
  font-style: normal;
}

.gallery-hero__subtitle {
  color: var(--gallery-text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin: 24px 0 0;
  opacity: 0;
  transform: translateY(20px);
  animation: galleryFadeUp 0.8s 0.8s forwards;
}

.gallery-hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(-50%);
  animation: galleryFadeUpCentered 0.8s 1.2s forwards;
}

.gallery-hero__scroll span {
  color: var(--gallery-text-muted);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.gallery-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gallery-orange), transparent);
  animation: galleryScrollPulse 2s ease-in-out infinite;
}

@keyframes galleryFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes galleryFadeUpCentered {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes galleryScrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.4; }
}

.gallery-marquee {
  overflow: hidden;
  background: var(--gallery-orange);
  padding: 14px 0;
  display: flex;
}

.gallery-marquee__track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: galleryMarquee 20s linear infinite;
}

.gallery-marquee__track span {
  color: var(--gallery-black);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gallery-marquee__track .dot {
  align-self: center;
  font-size: 0.5rem;
  opacity: 0.4;
}

@keyframes galleryMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.gallery-featured,
.gallery-masonry-section {
  padding: 120px 48px;
}

.gallery-featured__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
}

.gallery-section-label {
  color: var(--gallery-orange);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.gallery-featured__title,
.gallery-masonry-section__title,
.gallery-hscroll-section__title,
.gallery-parallax__title,
.gallery-cta__title {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  margin: 0;
}

.gallery-featured__title {
  font-size: clamp(3rem, 6vw, 5rem);
}

.gallery-featured__count {
  color: var(--gallery-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.gallery-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.gallery-work-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gallery-gray);
}

.gallery-work-item:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-work-item__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(0.75) contrast(1.08) brightness(0.72);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.8s ease;
  will-change: transform;
}

.gallery-work-item:hover .gallery-work-item__bg {
  transform: scale(1.08);
  filter: saturate(1) contrast(1.05) brightness(0.86);
}

.gallery-work-item__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 130, 30, 0.18), rgba(0, 0, 0, 0.1));
}

.gallery-work-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
}

.gallery-work-item__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px;
  transform: translateY(12px);
  transition: transform 0.4s;
}

.gallery-work-item:hover .gallery-work-item__info {
  transform: translateY(0);
}

.gallery-work-item__cat {
  color: var(--gallery-orange);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.gallery-work-item__title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.gallery-work-item__year {
  color: var(--gallery-text-muted);
  font-size: 0.65rem;
  margin: 8px 0 0;
}

.gallery-work-item__arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
}

.gallery-work-item:hover .gallery-work-item__arrow {
  opacity: 1;
  transform: scale(1);
}

.gallery-work-item__arrow svg,
.gallery-cta__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.gallery-work-item__deco {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gallery-orange);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(5rem, 10vw, 8rem);
  letter-spacing: -0.05em;
  opacity: 0.16;
  pointer-events: none;
  transition: opacity 0.4s;
}

.gallery-work-item:hover .gallery-work-item__deco {
  opacity: 0.08;
}

.gallery-parallax {
  position: relative;
  height: 300vh;
}

.gallery-parallax__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.gallery-parallax__track {
  display: flex;
  height: 100%;
  transition: transform 0.1s linear;
  will-change: transform;
}

.gallery-parallax__slide {
  position: relative;
  flex: 0 0 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-parallax__bg {
  position: absolute;
  inset: -20%;
  will-change: transform;
}

.ps1 .gallery-parallax__bg { background: radial-gradient(circle at 30% 60%, #3d1500 0%, #0a0a0a 60%); }
.ps2 .gallery-parallax__bg { background: radial-gradient(circle at 70% 40%, #0d0d2a 0%, #0a0a0a 60%); }
.ps3 .gallery-parallax__bg { background: radial-gradient(circle at 50% 50%, #0a1a0a 0%, #0a0a0a 60%); }

.gallery-parallax__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  padding: 0 80px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-parallax__content.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-parallax__num {
  color: transparent;
  font-family: "Bebas Neue", sans-serif;
  font-size: 8rem;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(232, 130, 30, 0.3);
  margin-bottom: -20px;
}

.gallery-parallax__title {
  color: var(--gallery-white);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 24px;
}

.gallery-parallax__desc {
  color: var(--gallery-text-muted);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.9;
  margin: 0;
  max-width: 400px;
}

.gallery-parallax__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.gallery-tag {
  border: 1px solid rgba(232, 130, 30, 0.3);
  color: var(--gallery-orange);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  padding: 6px 12px;
  text-transform: uppercase;
}

.gallery-parallax__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--gallery-gray);
  overflow: hidden;
}

.gallery-parallax__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 130, 30, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 130, 30, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.gallery-parallax__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(232, 130, 30, 0.15);
  pointer-events: none;
}

.gallery-parallax__visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-visual-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: transparent;
  font-family: "Bebas Neue", sans-serif;
  font-size: 6rem;
  -webkit-text-stroke: 2px rgba(232, 130, 30, 0.4);
}

.gallery-parallax__visual-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gallery-orange);
  transition: width 1.2s 0.4s ease;
}

.gallery-parallax__content.visible .gallery-parallax__visual-bar {
  width: 100%;
}

.gallery-float-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(232, 130, 30, 0.15);
  animation: galleryFloatAnim 8s ease-in-out infinite;
  pointer-events: none;
}

.circle-1a { width: 300px; height: 300px; top: 10%; right: 5%; }
.circle-1b { width: 150px; height: 150px; bottom: 20%; left: 10%; animation-delay: 3s; }
.circle-2a { width: 200px; height: 200px; top: 20%; left: 8%; animation-delay: 1s; }
.circle-3a { width: 400px; height: 400px; bottom: -10%; right: -5%; animation-delay: 2s; }

@keyframes galleryFloatAnim {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.gallery-stats {
  padding: 100px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--gallery-gray-mid);
}

.gallery-stat {
  position: relative;
  padding: 48px 40px;
  background: var(--gallery-gray);
  overflow: hidden;
}

.gallery-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gallery-orange);
  transition: height 0.8s ease;
}

.gallery-stat.visible::before {
  height: 100%;
}

.gallery-stat__num {
  color: var(--gallery-orange);
  font-family: "Bebas Neue", sans-serif;
  font-size: 4rem;
  line-height: 1;
}

.gallery-stat__label {
  color: var(--gallery-text-muted);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-top: 8px;
}

.gallery-masonry-section__header {
  margin-bottom: 64px;
}

.gallery-masonry-section__title,
.gallery-hscroll-section__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.gallery-masonry-grid {
  columns: 3;
  column-gap: 16px;
}

.gallery-masonry-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--gallery-gray);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-masonry-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-masonry-item__img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(0.2) brightness(0.8);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

.gallery-masonry-item:nth-child(2n) .gallery-masonry-item__img { aspect-ratio: 4 / 5; }
.gallery-masonry-item:nth-child(3n) .gallery-masonry-item__img { aspect-ratio: 4 / 2.6; }
.gallery-masonry-item:nth-child(4n) .gallery-masonry-item__img { aspect-ratio: 4 / 4.5; }

.gallery-masonry-item:hover .gallery-masonry-item__img {
  transform: scale(1.05);
  filter: grayscale(0) brightness(0.9);
}

.gallery-masonry-item__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.gallery-masonry-item:hover .gallery-masonry-item__caption {
  transform: translateY(0);
}

.gallery-masonry-item__caption h4 {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.gallery-masonry-item__caption p {
  color: var(--gallery-text-muted);
  font-size: 0.7rem;
  margin: 4px 0 0;
}

.gallery-hscroll-section {
  padding: 80px 0;
  overflow: hidden;
}

.gallery-hscroll-section__header {
  padding: 0 48px;
  margin-bottom: 48px;
}

.gallery-hscroll-track {
  display: flex;
  gap: 24px;
  padding: 0 48px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: grab;
}

.gallery-hscroll-track::-webkit-scrollbar {
  display: none;
}

.gallery-hscroll-track:active {
  cursor: grabbing;
}

.gallery-hscroll-card {
  position: relative;
  flex: 0 0 320px;
  border: 1px solid transparent;
  background: var(--gallery-gray);
  padding: 40px;
  transition: border-color 0.3s;
}

.gallery-hscroll-card:hover {
  border-color: rgba(232, 130, 30, 0.3);
}

.gallery-hscroll-card__num {
  color: transparent;
  font-family: "Bebas Neue", sans-serif;
  font-size: 5rem;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(232, 130, 30, 0.2);
  margin-bottom: 16px;
}

.gallery-hscroll-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 16px;
}

.gallery-hscroll-card__desc {
  color: var(--gallery-text-muted);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.8;
  margin: 0;
}

.gallery-hscroll-card__line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gallery-orange);
  transition: width 0.5s ease;
}

.gallery-hscroll-card:hover .gallery-hscroll-card__line {
  width: 100%;
}

.gallery-cta {
  position: relative;
  padding: 160px 48px;
  text-align: center;
  overflow: hidden;
}

.gallery-cta__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(232, 130, 30, 0.08) 0%, transparent 70%);
}

.gallery-cta__title {
  position: relative;
  z-index: 1;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
}

.gallery-cta__sub {
  position: relative;
  z-index: 1;
  max-width: 500px;
  color: var(--gallery-text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  margin: 32px auto;
}

.gallery-cta__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 48px;
  background: var(--gallery-orange);
  color: var(--gallery-black);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.3s;
}

.gallery-cta__btn:hover {
  background: #ff9933;
  transform: translateY(-2px);
}

.gallery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px;
  border-top: 1px solid var(--gallery-gray-mid);
}

.gallery-footer__logo {
  color: var(--gallery-white);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
}

.gallery-footer__copy {
  color: var(--gallery-text-muted);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  margin: 0;
}

.gallery-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-reveal-delay-1 { transition-delay: 0.1s; }
.gallery-reveal-delay-2 { transition-delay: 0.2s; }
.gallery-reveal-delay-3 { transition-delay: 0.3s; }

@media (max-width: 1024px) {
  .gallery-parallax__content {
    gap: 48px;
    padding: 0 48px;
  }

  .gallery-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-masonry-grid {
    columns: 2;
  }
}

@media (max-width: 767px) {
  .gallery-nav {
    padding: 24px 20px;
  }

  .gallery-nav__links {
    display: none;
  }

  .gallery-featured,
  .gallery-masonry-section {
    padding: 80px 20px;
  }

  .gallery-featured__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
  }

  .gallery-work-grid,
  .gallery-parallax__content,
  .gallery-stats {
    grid-template-columns: 1fr;
  }

  .gallery-work-item:first-child {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .gallery-parallax {
    height: auto;
  }

  .gallery-parallax__sticky {
    position: relative;
    height: auto;
  }

  .gallery-parallax__track {
    display: block;
    transform: none !important;
  }

  .gallery-parallax__slide {
    min-height: 100vh;
    height: auto;
    padding: 96px 0;
  }

  .gallery-parallax__content {
    gap: 32px;
    padding: 0 20px;
    opacity: 1;
    transform: none;
  }

  .gallery-parallax__slide.ps2 .gallery-parallax__visual {
    order: 2;
  }

  .gallery-parallax__num {
    font-size: 5rem;
  }

  .gallery-masonry-grid {
    columns: 1;
  }

  .gallery-hscroll-section__header,
  .gallery-hscroll-track {
    padding-left: 20px;
    padding-right: 20px;
  }

  .gallery-hscroll-card {
    flex-basis: 280px;
    padding: 32px;
  }

  .gallery-cta {
    padding: 120px 20px;
  }

  .gallery-footer {
    flex-direction: column;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
  }
}

body.page-template-pages-page-gallery-php .header,
body.page-template-pages-page-gallery-php > .footer-contact-marquee,
body.page-template-pages-page-gallery-php > footer:not(.gallery-footer) {
  display: none;
}
