:root {
  --gallery-bg: #f7f2eb;
  --gallery-surface: rgba(255, 255, 255, 0.84);
  --gallery-surface-strong: #ffffff;
  --gallery-ink: #173b63;
  --gallery-ink-soft: #64768f;
  --gallery-brand: #f3b56b;
  --gallery-brand-strong: #e69847;
  --gallery-line: rgba(23, 59, 99, 0.1);
  --gallery-shadow: 0 26px 60px rgba(16, 43, 74, 0.1);
}

.gallery-page {
  background:
    radial-gradient(circle at top left, rgba(243, 181, 107, 0.2), transparent 24%),
    radial-gradient(circle at 92% 8%, rgba(23, 59, 99, 0.1), transparent 20%),
    linear-gradient(180deg, #fbf7f0 0%, var(--gallery-bg) 44%, #f6efe5 100%);
  color: var(--gallery-ink);
}

.gallery-main {
  overflow-x: clip;
}

.gallery-shell {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
}

.gallery-hero {
  padding: 34px 0 28px;
}

.gallery-hero__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 34px;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 241, 0.88)),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--gallery-shadow);
}

.gallery-hero__panel::before,
.gallery-hero__panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.gallery-hero__panel::before {
  width: 260px;
  height: 260px;
  top: -110px;
  right: -72px;
  background: radial-gradient(circle, rgba(243, 181, 107, 0.28) 0%, rgba(243, 181, 107, 0) 72%);
}

.gallery-hero__panel::after {
  width: 260px;
  height: 260px;
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(23, 59, 99, 0.16) 0%, rgba(23, 59, 99, 0) 72%);
}

.gallery-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: center;
}

.gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.52rem 0.88rem;
  border-radius: 10px;
  background: rgba(23, 59, 99, 0.08);
  color: var(--gallery-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-eyebrow i {
  color: var(--gallery-brand-strong);
}

.gallery-hero__copy h1 {
  margin: 18px 0 14px;
  max-width: 12ch;
  color: var(--gallery-ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-align: justify;
  text-align-last: left;
}

.gallery-hero__copy p {
  max-width: 62ch;
  margin: 0;
  color: var(--gallery-ink-soft);
  font-size: 1.03rem;
  line-height: 1.8;
}

.gallery-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.gallery-hero__chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.76rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 59, 99, 0.08);
  color: var(--gallery-ink);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(16, 43, 74, 0.06);
}

.gallery-hero__chips i {
  color: var(--gallery-brand-strong);
}

.gallery-hero__feature {
  display: grid;
  gap: 14px;
}

.gallery-hero__feature-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 28px;
  box-shadow: 0 22px 46px rgba(16, 43, 74, 0.18);
}

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

.gallery-hero__feature-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(9, 25, 23, 0.04), rgba(9, 25, 23, 0.74));
  color: #ffffff;
}

.gallery-hero__feature-overlay span {
  display: inline-flex;
  width: fit-content;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-hero__feature-overlay h2 {
  margin: 0;
  max-width: 11ch;
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
  font-family: "Cormorant Garamond", serif;
}

.gallery-hero__feature-overlay p {
  margin: 0;
  max-width: 30ch;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.gallery-tabs-section {
  padding: 0 0 80px;
}

.gallery-tabs-shell {
  display: grid;
  gap: 26px;
}

.gallery-tabs-header {
  display: grid;
  gap: 18px;
  align-items: start;
  justify-items: start;
}

.gallery-tabs-header__copy {
  width: 100%;
  max-width: 56rem;
}

.gallery-tabs-header__copy h2 {
  margin: 0 0 10px;
  color: #112e4c;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  text-wrap: balance;
}

.gallery-tabs-header__copy p {
  margin: 0;
  max-width: 62ch;
  color: #35506d;
  line-height: 1.75;
}

.gallery-tabs {
  gap: 10px;
  justify-content: flex-start;
}

.gallery-tabs .nav-link {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--gallery-ink);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(16, 43, 74, 0.05);
}

.gallery-tabs .nav-link:hover,
.gallery-tabs .nav-link:focus-visible {
  border-color: rgba(243, 181, 107, 0.28);
  color: var(--gallery-brand-strong);
  background: rgba(255, 255, 255, 0.92);
}

.gallery-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--gallery-brand) 0%, #f8d1a5 100%);
  color: #112e4c;
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(243, 181, 107, 0.28);
}

.gallery-tab-pane {
  display: none;
}

.gallery-tab-pane.active {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: var(--gallery-surface);
  box-shadow: 0 18px 42px rgba(16, 43, 74, 0.08);
}

.gallery-card--large {
  grid-column: span 7;
}

.gallery-card--wide {
  grid-column: span 8;
}

.gallery-card--medium {
  grid-column: span 5;
}

.gallery-card--standard {
  grid-column: span 4;
}

.gallery-card__media {
  position: absolute;
  inset: 0;
}

.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 28, 27, 0.06), rgba(14, 28, 27, 0.76));
}

.gallery-card:hover .gallery-card__media img,
.gallery-card:focus-within .gallery-card__media img {
  transform: scale(1.06);
}

.gallery-card__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 26px 24px 22px;
  color: #ffffff;
}

.gallery-card__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.5rem 0.76rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-card__title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.08;
  font-family: "Cormorant Garamond", serif;
}

.gallery-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.93rem;
}

.gallery-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.gallery-card__meta i {
  color: #f6d170;
}

.gallery-story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
}

.gallery-story__panel,
.gallery-story__notes {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 38px rgba(16, 43, 74, 0.08);
}

.gallery-story__panel {
  padding: clamp(24px, 4vw, 34px);
}

.gallery-story__panel h3,
.gallery-story__notes h3 {
  margin: 0 0 14px;
  color: var(--gallery-ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.gallery-story__panel h3 {
  width: 100%;
  max-width: none;
  text-align: left;
  text-align-last: auto;
}

.gallery-story__panel p {
  margin: 0 0 16px;
  color: var(--gallery-ink-soft);
  line-height: 1.8;
}

.gallery-story__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.gallery-story__stat {
  padding: 1rem;
  border-radius: 10px;
  background: rgba(23, 59, 99, 0.05);
}

.gallery-story__stat strong {
  display: block;
  color: var(--gallery-ink);
  font-size: 1.5rem;
}

.gallery-story__stat span {
  color: var(--gallery-ink-soft);
  font-size: 0.9rem;
}

.gallery-story__notes {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 34px);
}

.gallery-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 248, 236, 0.9);
}

.gallery-note__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(243, 181, 107, 0.18);
  color: var(--gallery-brand-strong);
}

.gallery-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gallery-ink);
}

.gallery-note p {
  margin: 0;
  color: var(--gallery-ink-soft);
  line-height: 1.72;
}

.gallery-cta {
  padding-bottom: 90px;
}

.gallery-cta__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 30px;
  background: linear-gradient(135deg, #11355f 0%, #1c4f82 54%, #2c6598 100%);
  box-shadow: 0 24px 50px rgba(16, 43, 74, 0.22);
}

.gallery-cta__copy h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.03;
}

.gallery-cta__copy p {
  margin: 0;
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.gallery-hero__copy p,
.gallery-hero__feature-overlay p,
.gallery-tabs-header__copy p,
.gallery-story__panel p,
.gallery-note p,
.gallery-cta__copy p {
  text-align: justify;
  text-justify: inter-word;
}

.gallery-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.gallery-button:hover,
.gallery-button:focus-visible {
  transform: translateY(-2px);
}

.gallery-button--primary {
  background: linear-gradient(135deg, var(--gallery-brand) 0%, #f8d1a5 100%);
  color: #112e4c;
  box-shadow: 0 14px 28px rgba(243, 181, 107, 0.26);
}

.gallery-button--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 1100px) {
  .gallery-hero__grid,
  .gallery-story {
    grid-template-columns: 1fr;
  }

  .gallery-hero__copy h1 {
    max-width: 14ch;
  }

  .gallery-card--large,
  .gallery-card--wide,
  .gallery-card--medium,
  .gallery-card--standard {
    grid-column: span 6;
  }
}

@media (max-width: 767.98px) {
  .gallery-hero {
    padding-top: 24px;
  }

  .gallery-hero__panel,
  .gallery-story__panel,
  .gallery-story__notes,
  .gallery-cta__panel {
    border-radius: 24px;
  }

  .gallery-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }

  .gallery-tabs .nav-item {
    width: 100%;
  }

  .gallery-tabs .nav-link {
    width: 100%;
    min-height: 46px;
    padding: 0.7rem 0.8rem;
    font-size: 0.88rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    box-shadow: 0 8px 18px rgba(16, 43, 74, 0.05);
  }

  .gallery-hero__feature-overlay p,
  .gallery-note p,
  .gallery-cta__copy p {
    text-align: left;
  }

  .gallery-card--large,
  .gallery-card--wide,
  .gallery-card--medium,
  .gallery-card--standard {
    grid-column: span 12;
    min-height: 280px;
  }

  .gallery-story__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .gallery-tabs {
    grid-template-columns: 1fr;
  }
}
