@import url('https://fonts.googleapis.com/css2?family=Capriola&family=Bagel+Fat+One&display=swap');

/* ===== Theme tokens ===== */
:root {
  /* Global color tokens */
  --bkgd1: var(--acct1);
  --bkgd2: #fffcee;
  --type1: var(--acct2);
  --type2: #DB162F;
  --site-max-width: 1200px;
  --site-header-pad: clamp(0.9rem, 1vw, 1.1rem);
  --header-stripe-5: #31003a;
  --header-stripe-4: var(--type2);
  --header-stripe-3: #ff8c00;
  --header-stripe-2: var(--acct1);
  --header-stripe-1: var(--acct2);
  --about-seal-size: clamp(96px, 12vw, 146px);
  --about-seal-offset-x: -20px;
  --about-seal-offset-y: 0px;
  --acct1: #ffe66a;
  --acct2: #074751;
  --lightbox-caption-h: 72px;
  /* Buttons */
  --btn-bg: var(--acct2);
  --btn-color: var(--bkgd2);
  --btn-radius: 12px;
  --btn-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  --btn-padding: 0.9rem 1.1rem;
  --btn-font-weight: 700;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Capriola", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bkgd2);
  color: var(--acct2);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: var(--btn-padding);
  border: none;
  border-radius: var(--btn-radius);
  background: var(--btn-bg);
  color: var(--btn-color);
  font: inherit;
  font-weight: var(--btn-font-weight);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow: var(--btn-shadow);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

.btn:active:not(:disabled) {
  transform: scale(0.96);
}

.btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ===== Headings ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: "Capriola", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  color: inherit;
}

.heading-accent {
  color: var(--acct1);
}

/* ===== Page layout ===== */
.site-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: var(--bkgd2);
  padding-bottom: 30px;
  overflow: visible;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: max(0px, calc((100vw - var(--site-max-width)) / 2 - var(--site-header-pad)));
  background: linear-gradient(
    to bottom,
    var(--header-stripe-1) 0%,
    var(--header-stripe-1) 20%,
    var(--header-stripe-2) 20%,
    var(--header-stripe-2) 40%,
    var(--header-stripe-3) 40%,
    var(--header-stripe-3) 60%,
    var(--header-stripe-4) 60%,
    var(--header-stripe-4) 80%,
    var(--header-stripe-5) 80%,
    var(--header-stripe-5) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.site-header-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: var(--site-header-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  background: transparent;
  border: none;
  color: var(--acct2); /* match title color */
  padding: 8px;
  cursor: pointer;
  transition: opacity 120ms ease;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 4px;
  background: currentColor;
  border-radius: 999px;
}

.menu-toggle:hover {
  opacity: 0.8;
}

.menu-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.menu-drawer {
  position: absolute;
  right: 1.5rem;
  top: calc(100% + 0.5rem);
  min-width: 180px;
  background: var(--bkgd2);
  color: var(--acct2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 0.5rem;
  z-index: 1200;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.menu-list button,
.menu-list a {
  width: 100%;
  display: block;
  text-align: left;
  background: transparent;
  border: none;
  color: inherit;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.menu-list button:hover,
.menu-list button:focus-visible,
.menu-list a:hover,
.menu-list a:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}

.site-logo {
  --logo-mask: url("/assets/header-logo.svg");
  position: relative;
  height: clamp(58px, 10vw, 116px);
  aspect-ratio: 865.85 / 155.91;
  max-width: 100%;
  color: var(--acct2);        /* THIS sets the logo color */
  cursor: pointer;
}

.site-logo::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;

  background-color: currentColor;

  -webkit-mask-image: var(--logo-mask);
          mask-image: var(--logo-mask);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}

.site-logo-subtitle {
  position: absolute;
  left: 0;
  top: calc(100% + 0.6rem);
  font-size: clamp(0.9rem, 1.3vw, 1.20rem);
  letter-spacing: 0.12em;
  color: currentColor;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  padding-bottom: 0.1rem;
}

@media (max-width: 480px) {
  .site-header-inner {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
  }
  .site-logo {
    flex: 1 1 auto;
    min-width: 0;
    height: clamp(48px, 12vw, 86px);
    max-width: 72vw;
  }
  .site-logo-subtitle {
    font-size: clamp(0.78rem, 3vw, 0.95rem);
    top: calc(100% + 0.45rem);
  }
  .menu-toggle {
    flex: 0 0 auto;
  }
}


main {
  flex: 1;
}

/* ===== Sections ===== */
.section {
  width: 100%;
  padding: 2rem 1.5rem;
  background: var(--section-bg, var(--bkgd2));
  color: var(--section-color, var(--type1));
  font-weight: var(--section-weight, 400);
  scroll-margin-top: 120px; /* offset for sticky header */
}

.section-contrast {
  --section-bg: var(--bkgd2);
  --section-color: var(--type1);
}

.section-accent {
  --section-bg: var(--acct1);
  --section-color: var(--type1);
}

.section + .section {
  border-top: none;
}

.section .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

#apparel-section > #quoter-section {
  padding-left: 0;
  padding-right: 0;
}

#aboutus-section {
  --section-color: var(--bkgd2);
  color: var(--bkgd2);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url('./assets/gorillabanner.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

#aboutus-section .section-inner {
  position: relative;
}

@media (max-width: 700px) {
  #aboutus-section {
    background-position: right top;
  }
}

/* ===== Galleries ===== */
.gallery-block:not(:last-child) {
  margin-bottom: 2rem;
}

/* ===== Catalog search card ===== */
.catalog-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  color: inherit;
}

.catalog-head h1 {
  margin: 0 0 0.35rem 0;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.05;
  font-weight: 700;
}

.catalog-head h2 {
  margin: 0 0 0.3rem 0;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
}

.catalog-head p {
  margin: 0 0 1rem 0;
  max-width: 46ch;
}

.catalog-head h1,
.catalog-head h2,
.catalog-head p {
  color: var(--acct2);
}

.apparel-content h1 {
  margin-top: 0;
}

.catalog-search-form {
  display: grid;
  gap: 1.75rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.catalog-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.catalog-method {
  display: grid;
  gap: 0.5rem;
  background: var(--bkgd2);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.catalog-method-title {
  font-weight: 700;
  color: var(--acct2);
  font-size: 1.4rem;
  margin: 0;
}

.catalog-field {
  display: grid;
  gap: 0.35rem;
}

.catalog-dual-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 0.6rem;
  align-items: end;
}

@media (max-width: 1190px) {
  .catalog-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .catalog-input-row {
    grid-template-columns: 1fr;
  }
  .catalog-dual-row {
    grid-template-columns: 1fr;
  }
  .catalog-browse-btn {
    grid-column: 1 / -1;
  }
}

.catalog-label {
  font-weight: 600;
  color: var(--acct2);
}

.catalog-select {
  display: grid;
  gap: 0.35rem;
}

.catalog-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.catalog-input-row input,
.catalog-select select {
  width: 100%;
  padding: 0.9rem 0.9rem;
  border-radius: 10px;
  border: none;
  font: inherit;
  background: var(--bkgd1);
  color: var(--acct2);
}

.catalog-input-row input:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
}

.catalog-browse-btn button {
  width: 100%;
}

.catalog-status {
  min-height: 1.25rem;
  color: var(--acct2);
  font-size: 0.95rem;
}

.catalog-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.35rem 0.4rem 0.5rem;
}

.catalog-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.catalog-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.catalog-page-btn,
.catalog-page-ellipsis {
  font-size: 0.9rem;
}

.catalog-page-btn {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.05);
  color: var(--acct2);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.catalog-page-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.catalog-page-btn.active {
  background: var(--acct2);
  color: var(--bkgd2);
  border-color: rgba(0, 0, 0, 0.1);
}

.catalog-page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.catalog-page-ellipsis {
  color: var(--acct2);
  padding: 0 0.2rem;
}

.catalog-card-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 0.9rem;
  display: grid;
  gap: 0.4rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.catalog-img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
}

.catalog-card-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: top center;
}

.catalog-swatch {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 54px;
  height: 40px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.18);
  display: none;
}

.catalog-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.catalog-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--acct2);
  color: var(--bkgd2);
  font-size: 20px;
  cursor: pointer;
}

.catalog-nav.prev {
  left: 8px;
}

.catalog-nav.next {
  right: 8px;
}

.catalog-brandline {
  font-weight: 600;
  margin: 0.2rem 0;
  color: var(--type1);
}

.catalog-colorline {
  font-size: 0.95rem;
  color: var(--type1);
}

.catalog-card-item h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--acct2);
}

.catalog-card-desc {
  margin: 0.25rem 0 0;
  color: var(--acct2);
  font-size: 0.95rem;
  line-height: 1.35;
}

.catalog-card-item .meta {
  font-size: 0.95rem;
  color: var(--acct2);
}

.catalog-card-item .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 0.65rem;
  line-height: 1;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
  margin-right: 0;
  white-space: nowrap;
}

.catalog-card-item .pill-price {
  background: #008776;
  color: #f5f0c3;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.catalog-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.25rem 0 0.5rem;
}

.catalog-sizes .pill-size {
  background: var(--acct2);
  color: var(--bkgd2);
  font-weight: 600;
}

.catalog-colors {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.78);
}

.catalog-swatches {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.catalog-swatch {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  display: inline-block;
  background: rgba(0, 0, 0, 0.05);
}

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

.catalog-swatch-more {
  font-weight: 700;
  color: var(--type1);
}

.custom-tote-content {
  margin-bottom: 3rem;
}

.gallery-block {
  display: grid;
  gap: 0.75rem;
}

.gallery-header {
  display: none;
}

.gallery-block-title {
  font-weight: 700;
  font-size: clamp(26px, 4vw, 32px);
  line-height: 1.1;
}

.about-content .wave {
  display: block;
  width: 2000px;
  max-width: none;
  flex-shrink: 0;
  height: 10px;
  margin: 1rem 0 0.75rem 0;
  stroke: currentColor;
  overflow: hidden;
}

.about-content .wave path {
  stroke: currentColor;
  stroke-width: 2.5;
}

.about-seal-anchor {
  position: absolute;
  top: calc(100% - (var(--about-seal-size) / 2) - 2rem + var(--about-seal-offset-y));
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateX(var(--about-seal-offset-x));
  width: calc(100% - 3rem);
  max-width: var(--site-max-width);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  pointer-events: none;
  z-index: 1;
}

.about-seal-anchor .about-seal-wrap {
  grid-column: 2;
  justify-self: center;
  width: var(--about-seal-size);
  aspect-ratio: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
}

.about-seal-anchor .about-seal-wrap::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: var(--bkgd2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: calc(var(--about-seal-size) / 2 - 1rem);
  overflow: hidden;
}

.about-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  width: 100%;
}

.about-text {
  min-width: 0;
}

.about-seal {
  display: block;
  width: 100%;
  height: 100%;
  justify-self: center;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  background-color: var(--header-stripe-4);
  animation: aboutSealColor 12s linear infinite;
  -webkit-mask-image: url("/assets/quoteseal2.svg");
          mask-image: url("/assets/quoteseal2.svg");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  pointer-events: auto;
}

.about-seal:focus-visible {
  outline: 3px solid var(--header-stripe-1);
  outline-offset: 4px;
}

@keyframes aboutSealColor {
  0% {
    background-color: var(--header-stripe-4);
  }
  33% {
    background-color: var(--header-stripe-3);
  }
  66% {
    background-color: var(--header-stripe-2);
  }
  100% {
    background-color: var(--header-stripe-4);
  }
}

@media (max-width: 820px) {
  .about-seal-anchor {
    grid-template-columns: 1fr;
  }
  .about-seal-anchor .about-seal-wrap {
    grid-column: 1;
    justify-self: end;
  }
  .about-body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-seal {
    animation: none;
  }
}

.gallery-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 0.6rem;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  min-height: 260px;
}

.gallery-viewport {
  grid-column: 2;
  width: 100%;
  overflow: hidden;
  min-height: 260px;
}

.gallery-actions {
  display: contents;
}

.gallery-action {
  grid-row: 1;
  background: var(--acct2);
  color: var(--bkgd2);
  border: none;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transition: box-shadow 120ms ease, background-color 120ms ease, transform 120ms ease, opacity 120ms ease;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.gallery-action-prev {
  grid-column: 1;
}

.gallery-action-next {
  grid-column: 3;
}

.gallery-action:hover {
  background: #0a9c86;
  transform: translateY(-1px);
  opacity: 0.92;
}

.gallery-action:active {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.gallery-action:focus-visible {
  outline: 2px solid var(--section-color, var(--acct2));
  outline-offset: 2px;
}

.gallery-track {
  grid-column: 2;
  display: flex;
  gap: 0;
  transition: transform 320ms ease;
  touch-action: pan-y;
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 auto;
  cursor: pointer;
  user-select: none;
}

.gallery-img {
  display: block;
  height: 260px;
  width: auto;
}

.apparel-content {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 0.75rem 0;
}

.logo-track {
  display: flex;
  gap: 0;
  align-items: center;
  will-change: transform;
  touch-action: pan-y;
}

.logo-slide {
  flex: 0 0 auto;
  display: block;
}

.logo-slide a {
  display: block;
  padding: 0;
}

.logo-img {
  display: block;
  height: 112px;
  width: auto;
  object-fit: contain;
}

.gallery-title {
  padding: 0.75rem 0.5rem 1.25rem;
  font-weight: 600;
}

/* ===== Reviews ===== */
.reviews-head h2 {
  margin: 0 0 0.25rem;
}
.reviews-head p {
  margin: 0 0 1rem;
  color: var(--type1);
}
.reviews-status {
  min-height: 1.2rem;
  color: var(--type1);
  margin-bottom: 0.5rem;
}
.review-card {
  background: var(--type1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
  color: var(--bkgd2);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 180px;
}
.reviews-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  min-height: 230px;
}
.review-nav {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--acct2);
  color: var(--bkgd2);
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  transition: box-shadow 120ms ease, background-color 120ms ease;
}
.review-nav:hover {
  background: #0a9c86;
}
.review-nav:active {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.review-name {
  font-weight: 700;
  color: var(--bkgd2);
}
.review-stars {
  color: var(--acct1);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.review-time {
  font-size: 0.85rem;
  color: rgba(245, 240, 195, 0.8);
}
.review-text {
  margin: 0;
  line-height: 1.4;
  color: var(--bkgd2);
  flex: 1 1 auto;
}

/* ===== Lightbox ===== */
.reviews-grid.slide-in-left,
.review-card.slide-in-left { animation: slideInLeft 300ms ease; }
.reviews-grid.slide-in-right,
.review-card.slide-in-right { animation: slideInRight 300ms ease; }
.reviews-grid.slide-out-left,
.review-card.slide-out-left { animation: slideOutLeft 250ms ease; }
.reviews-grid.slide-out-right,
.review-card.slide-out-right { animation: slideOutRight 250ms ease; }

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-40px); }
}
@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2000;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  position: relative;
  background: transparent;
  color: var(--type1);
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  display: inline-block;
  padding-bottom: var(--lightbox-caption-h);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
}

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  margin: 0 auto;
}

@media (min-aspect-ratio: 4/3) {
  /* Wide screens: height-driven */
  .lightbox-content {
    height: 100vh;
    max-height: 100vh;
  }
  .lightbox img {
    height: calc(100vh - var(--lightbox-caption-h));
    width: auto;
    max-width: 100vw;
    max-height: calc(100vh - var(--lightbox-caption-h));
  }
}

@media (max-aspect-ratio: 4/3) {
  /* Tall screens: width-driven */
  .lightbox-content {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: 100vh;
  }
  .lightbox img {
    width: 100vw;
    height: auto;
    max-height: calc(100vh - var(--lightbox-caption-h));
    max-width: 100vw;
  }
}

.lightbox-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  background: var(--bkgd2);
  height: var(--lightbox-caption-h);
  padding: 0.8rem 1.25rem 1rem;
  font-weight: 700;
  color: var(--type1);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bkgd2);
  color: var(--type1);
  font-size: 20px;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--type2);
  outline-offset: 2px;
}

body.no-scroll {
  overflow: hidden;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bkgd2);
  color: var(--type1);
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 600;
}

.footer-top {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.footer-links {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  font-weight: 700;
}

.footer-links a {
  color: var(--acct2);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.footer-wave {
  display: block;
  width: 2000px;
  max-width: none;
  margin: 0 auto;
  height: 10px;
  stroke: currentColor;
  flex-shrink: 0;
}

.footer-wave path {
  stroke: currentColor;
  stroke-width: 4;
}

.footer-contact {
  display: grid;
  gap: 0.2rem;
  font-weight: 600;
}

.footer-contact a {
  color: var(--acct2);
  text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  text-decoration: underline;
}

.footer-meta {
  font-weight: 600;
  color: var(--type1);
}

h2 { margin: 0.5rem 0 1rem; }
p  { margin: 0.5rem 0 1rem; }
a  { color: var(--acct2); }
a:hover, a:focus-visible { color: var(--acct2); }

/* ===== Embedded iframe wrapper ===== */
.embedded-wrap {
  width: 100%;
  overflow: visible;
  padding: 0.5rem 1.5rem;
  box-sizing: border-box;
  border-radius: 12px;
  background: var(--bkgd2);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.embedded-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  overflow: visible;
  border-radius: 0;
}
