.avni-footer {
  position: relative;
  margin-top: 3rem;
  padding: 4.5rem 0 1.25rem;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 60, 172, 0.18), transparent 26%),
    radial-gradient(circle at 85% 30%, rgba(215, 255, 63, 0.12), transparent 28%),
    linear-gradient(180deg, var(--theme-ink-soft) 0%, var(--theme-ink) 100%);
  border-top: 1px solid var(--theme-border);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  color: var(--theme-text);
}

.avni-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
  pointer-events: none;
}

.avni-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .8fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.avni-footer__brand,
.avni-footer__links,
.avni-footer__cta {
  position: relative;
  z-index: 1;
}

.avni-footer__brand {
  display: grid;
  gap: 1rem;
}

.avni-footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--theme-gold-light), var(--theme-gold) 55%, var(--theme-green));
  color: var(--theme-ink);
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 1.4rem;
  box-shadow: 0 14px 28px rgba(255, 60, 172, 0.28);
}

.avni-footer__brand h3,
.avni-footer__links h4,
.avni-footer__cta h4 {
  margin: 0;
  color: var(--theme-text);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.avni-footer__brand p,
.avni-footer__cta p,
.avni-footer__links a,
.avni-footer__bottom {
  margin: 0;
  color: var(--theme-muted);
  line-height: 1.7;
}

.avni-footer__links ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.avni-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--theme-text);
  transition: color 0.25s ease, transform 0.25s ease;
}

.avni-footer__links a:hover,
.avni-footer__links a:focus-visible {
  color: var(--theme-green);
  transform: translateX(4px);
}

.avni-footer__cta {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.avni-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.avni-service-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.avni-service-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--theme-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.avni-service-link h2 {
  margin: 0;
}

.avni-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.avni-footer__button:hover,
.avni-footer__button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.avni-footer__button--gold {
  background: linear-gradient(135deg, var(--theme-gold-light), var(--theme-gold), var(--theme-green));
  color: var(--theme-ink);
  box-shadow: 0 16px 32px rgba(255, 60, 172, 0.24);
}

.avni-footer__button--dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--theme-border);
  color: var(--theme-text);
}

.avni-footer__bottom {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.94rem;
}

.avni-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.avni-footer__meta span {
  display: inline-flex;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--theme-border);
  color: var(--theme-green);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.page-hero {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(ellipse at 80% 15%, rgba(255, 60, 172, 0.2), transparent 32rem),
    radial-gradient(ellipse at 15% 100%, rgba(215, 255, 63, 0.1), transparent 28rem),
    linear-gradient(145deg, var(--theme-ink-soft), var(--theme-ink) 75%);
}

.gallery-banner {
  position: relative;
  display: block;
  width: 100%;
  min-height: clamp(220px, 34vw, 540px);
  height: clamp(220px, 34vw, 540px);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--theme-ink);
}

.gallery-banner::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 11, 29, 0.3), rgba(16, 11, 29, 0.04) 75%),
    linear-gradient(0deg, rgba(16, 11, 29, 0.22), transparent 65%);
  content: "";
  pointer-events: none;
}

.gallery-banner__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.2) saturate(1.08);
}

.gallery-banner__content {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
}

.gallery-banner .page-kicker {
  color: #dcff46;
}

.page-hero__content {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
}

.page-hero h1,
.page-section h2 {
  color: var(--theme-text);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.page-hero h1 {
  max-width: 800px;
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  line-height: 1.08;
}

.page-hero p {
  max-width: 690px;
  margin: 0;
  color: var(--theme-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.page-kicker {
  margin: 0 0 0.8rem;
  color: var(--theme-green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.page-section__inner {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
}

.page-section h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-section p {
  color: var(--theme-muted);
}

.page-story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.model-showcase {
  padding-top: clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 60, 172, 0.1), transparent 36rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}

.model-showcase__heading {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.model-showcase__heading h1 {
  margin: 0 0 0.75rem;
  color: var(--theme-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
}

.model-showcase__heading > p:last-child {
  margin: 0;
}

.model-showcase__stage {
  position: relative;
  display: grid;
  width: min(100%, 980px);
  min-height: 520px;
  margin: 0 auto;
  grid-template-areas:
    "name height"
    "age about";
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(250px, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background: var(--theme-ink-soft);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.model-showcase__details {
  display: contents;
}

.model-detail {
  position: relative;
  display: flex;
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  flex-direction: column;
  justify-content: center;
  color: #fff7fc;
}

.model-detail--name {
  grid-area: name;
  align-items: flex-start;
  border-radius: 28px 0 0;
  background: linear-gradient(135deg, #84215f, #a72b75);
}

.model-detail--height {
  grid-area: height;
  align-items: flex-end;
  border-radius: 0 28px 0 0;
  background: linear-gradient(135deg, #79411f, #a75b27);
  text-align: right;
}

.model-detail--age {
  grid-area: age;
  align-items: flex-start;
  border-radius: 0 0 0 28px;
  background: linear-gradient(135deg, #1e5875, #287795);
}

.model-detail--about {
  grid-area: about;
  align-items: flex-end;
  border-radius: 0 0 28px;
  background: linear-gradient(135deg, #4b6323, #67852b);
  text-align: right;
}

.model-detail__label {
  margin-bottom: 0.35rem;
  color: rgba(255, 247, 252, 0.76);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.model-detail h2,
.model-detail p {
  max-width: 230px;
  margin: 0;
  color: inherit;
}

.model-detail h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.3vw, 1.75rem);
  line-height: 1.2;
}

.model-detail p {
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  line-height: 1.5;
}

.model-detail--height > p,
.model-detail--age > p {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
}

.model-detail .model-detail__price {
  margin-top: 0.5rem;
  color: #fff;
  font-weight: 800;
}

.model-showcase__portrait {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: clamp(250px, 34vw, 330px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 10px solid rgba(255, 247, 252, 0.92);
  border-radius: 50%;
  background: var(--theme-ink);
  box-shadow: 0 0 0 2px rgba(16, 11, 29, 0.55), 0 15px 45px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
}

.model-showcase__image-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: var(--theme-ink-soft);
}

.model-showcase__image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.model-showcase__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(16, 11, 29, 0.84);
  color: var(--theme-text);
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.model-showcase__arrow:hover {
  background: var(--theme-green);
  color: var(--theme-ink);
  transform: translateY(-50%) scale(1.06);
}

.model-showcase__arrow:focus-visible,
.model-showcase__pagination button:focus-visible {
  outline: 3px solid var(--theme-green);
  outline-offset: 4px;
}

.model-showcase__arrow--previous {
  left: -15px;
}

.model-showcase__arrow--next {
  right: -15px;
}

.model-showcase__pagination {
  display: flex;
  margin: 1.5rem auto 0;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.model-showcase__pagination button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--theme-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: var(--theme-muted);
  font-size: 0.7rem;
  font-weight: 800;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.model-showcase__pagination button[aria-pressed="true"],
.model-showcase__pagination button:hover {
  border-color: var(--theme-green);
  background: var(--theme-green);
  color: var(--theme-ink);
}

.model-showcase__pagination span {
  margin-left: 0.4rem;
  color: var(--theme-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-note,
.contact-card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--theme-border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 60, 172, 0.1), rgba(255, 255, 255, 0.025));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.page-note p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 350ms ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

.gallery-grid figcaption {
  padding: 0.8rem 1rem;
  color: var(--theme-muted);
  font-size: 0.9rem;
}

.gallery-network {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 60, 172, 0.12), transparent 28rem),
    linear-gradient(145deg, #1a1028, var(--theme-ink) 72%);
}

.gallery-network__inner {
  max-width: 1120px;
}

.gallery-network__heading {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.gallery-network__heading .page-kicker {
  margin-bottom: 0.5rem;
  color: #dcff46;
}

.gallery-network__heading h2 {
  margin: 0;
  color: var(--theme-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.gallery-network__heading > p:last-child {
  margin: 0.5rem 0 0;
  color: var(--theme-muted);
}

.gallery-network__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  isolation: isolate;
}

.gallery-network__connectors {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.gallery-network__connectors--mobile {
  display: none;
}

.gallery-network__connectors defs path {
  fill: #dcff46;
}

.gallery-network__connectors > path {
  fill: none;
  stroke: rgba(220, 255, 70, 0.78);
  stroke-width: 2.5;
  stroke-dasharray: 10 10;
  marker-end: url("#about-gallery-arrow-desktop");
  animation: gallery-arrow-flow 1.8s linear infinite;
  filter: drop-shadow(0 0 5px rgba(220, 255, 70, 0.35));
}

.gallery-network__connectors--mobile > path {
  marker-end: url("#about-gallery-arrow-mobile");
}

.gallery-network__photo {
  position: absolute;
  z-index: 2;
  width: 24%;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(255, 181, 223, 0.35);
  border-radius: 17px;
  background: rgba(27, 17, 39, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32), 0 0 24px rgba(255, 60, 172, 0.1);
  animation: gallery-photo-arrive 800ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.gallery-network__photo--one { top: 1%; left: 10%; animation-delay: 100ms; }
.gallery-network__photo--two { top: 1%; right: 10%; animation-delay: 220ms; }
.gallery-network__photo--three { top: 42%; right: 0; animation-delay: 340ms; }
.gallery-network__photo--four { bottom: 15.5%; left: 40%; animation-delay: 460ms; }
.gallery-network__photo--five { top: 42%; left: 0; animation-delay: 580ms; }

.gallery-network__photo a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 11px;
  aspect-ratio: 1.1;
  background: #21152f;
}

.gallery-network__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 350ms ease;
}

.gallery-network__photo-number {
  position: absolute;
  top: 9px;
  left: 9px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(220, 255, 70, 0.7);
  border-radius: 50%;
  background: rgba(16, 11, 29, 0.72);
  color: #dcff46;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.gallery-network__photo-open {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(16, 11, 29, 0.68);
  color: #fff7fc;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 220ms ease, transform 220ms ease;
}

.gallery-network__photo figcaption {
  padding: 8px 4px 2px;
  color: var(--theme-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.gallery-network__photo:hover {
  z-index: 4;
  border-color: rgba(220, 255, 70, 0.8);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.44), 0 0 30px rgba(220, 255, 70, 0.18);
  transform: translateY(-7px) scale(1.035);
}

.gallery-network__photo:hover img {
  filter: saturate(1.12);
}

.gallery-network__photo:hover .gallery-network__photo-open,
.gallery-network__photo a:focus-visible .gallery-network__photo-open {
  opacity: 1;
  transform: scale(1);
}

.gallery-network__photo a:focus-visible {
  outline: 3px solid #dcff46;
  outline-offset: 3px;
}

.gallery-network__hub {
  position: absolute;
  z-index: 3;
  top: 29.5%;
  left: 35%;
  display: flex;
  width: 30%;
  min-height: 17%;
  padding: 10px 18px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(220, 255, 70, 0.72);
  border-radius: 28px 28px 28px 7px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 60, 172, 0.2), transparent 65%),
    linear-gradient(145deg, #251632, #160e25);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.4), 0 0 38px rgba(220, 255, 70, 0.1);
  text-align: center;
  animation: gallery-hub-arrive 900ms 120ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

.gallery-network__hub-ring {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 181, 223, 0.14);
  border-radius: 22px 22px 22px 4px;
  pointer-events: none;
}

.gallery-network__hub-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 5px;
  place-items: center;
  border: 1px solid rgba(220, 255, 70, 0.62);
  border-radius: 50%;
  background: rgba(220, 255, 70, 0.1);
  color: #dcff46;
  font-size: 19px;
  animation: gallery-hub-pulse 2.8s ease-in-out infinite;
}

.gallery-network__hub .page-kicker {
  margin-bottom: 5px;
  color: #dcff46;
  font-size: 10px;
}

.gallery-network__hub h1 {
  position: relative;
  margin: 0;
  color: var(--theme-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.5vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
}

.gallery-network__hub > p:last-of-type {
  margin: 7px 0 0;
  color: var(--theme-muted);
  font-size: 13px;
}

.gallery-network__hub-title {
  position: relative;
  color: var(--theme-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
}

@keyframes gallery-arrow-flow {
  to { stroke-dashoffset: -40; }
}

@keyframes gallery-photo-arrive {
  from { opacity: 0; filter: blur(8px); translate: 0 16px; }
  to { opacity: 1; filter: blur(0); translate: 0 0; }
}

@keyframes gallery-hub-arrive {
  from { opacity: 0; filter: blur(8px); scale: 0.88; }
  to { opacity: 1; filter: blur(0); scale: 1; }
}

@keyframes gallery-hub-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 255, 70, 0.14); }
  50% { box-shadow: 0 0 0 9px rgba(220, 255, 70, 0); }
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.contact-link {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0.85rem 1.3rem;
  align-items: center;
  gap: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--theme-gold-light), var(--theme-gold), var(--theme-green));
  color: var(--theme-ink);
  font-weight: 800;
  text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--theme-ink);
  filter: brightness(1.08);
  text-decoration: none;
}

@media (max-width: 768px) {
  .avni-footer {
    padding-top: 3.25rem;
  }

  .avni-footer__grid,
  .avni-service-links,
  .page-story,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .avni-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-banner {
    min-height: clamp(180px, 52vw, 360px);
    height: clamp(180px, 52vw, 360px);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 540px) {
  .gallery-banner {
    min-height: clamp(160px, 58vw, 260px);
    height: clamp(160px, 58vw, 260px);
  }

  .gallery-banner__image {
    object-position: center center;
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.7rem);
    overflow-wrap: anywhere;
  }
}

@media (max-width: 740px) {
  .gallery-network__heading h2 {
    font-size: clamp(1.45rem, 6vw, 2.3rem);
  }

  .gallery-network__stage {
    width: min(100%, 500px);
    min-height: 820px;
    margin: 0 auto;
    aspect-ratio: auto;
  }

  .gallery-network__connectors--desktop {
    display: none;
  }

  .gallery-network__connectors--mobile {
    display: block;
  }

  .gallery-network__photo {
    width: 34%;
    padding: 5px;
    border-radius: 13px;
  }

  .gallery-network__photo--one { top: 1%; left: 4%; width: 40%; }
  .gallery-network__photo--two { top: 1%; right: 4%; width: 40%; }
  .gallery-network__photo--three { top: 53%; right: 0; }
  .gallery-network__photo--four { bottom: 23%; left: 33%; }
  .gallery-network__photo--five { top: 53%; left: 0; }

  .gallery-network__photo a {
    border-radius: 8px;
    aspect-ratio: 1.05;
  }

  .gallery-network__photo-number {
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .gallery-network__photo-open {
    right: 6px;
    bottom: 6px;
    width: 28px;
    height: 28px;
    opacity: 1;
    transform: none;
  }

  .gallery-network__photo figcaption {
    padding-top: 6px;
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .gallery-network__hub {
    top: 39%;
    left: 29%;
    width: 42%;
    min-height: 0;
    padding: 10px 4px;
    border-radius: 20px 20px 20px 5px;
  }

  .gallery-network__hub-ring {
    inset: 6px;
    border-radius: 15px 15px 15px 3px;
  }

  .gallery-network__hub-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 6px;
    font-size: 15px;
  }

  .gallery-network__hub .page-kicker {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .gallery-network__hub-title {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
  }

  .gallery-network__hub-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }

  .gallery-network__photo img {
    object-fit: contain;
  }
}

@media (max-width: 740px) {
  .model-showcase__stage {
    min-height: 0;
    grid-template-areas:
      "name height"
      "portrait portrait"
      "age about";
    grid-template-rows: minmax(150px, auto) 235px minmax(175px, auto);
  }

  .model-detail {
    padding: 1.15rem;
  }

  .model-detail--name {
    border-radius: 24px 0 0;
  }

  .model-detail--height {
    border-radius: 0 24px 0 0;
  }

  .model-detail--age {
    border-radius: 0 0 0 24px;
  }

  .model-detail--about {
    border-radius: 0 0 24px;
  }

  .model-showcase__portrait {
    position: relative;
    top: auto;
    left: auto;
    width: 205px;
    border-width: 7px;
    grid-area: portrait;
    justify-self: center;
    transform: none;
  }

  .model-showcase__arrow {
    width: 40px;
    height: 40px;
  }

  .model-showcase__arrow--previous {
    left: -12px;
  }

  .model-showcase__arrow--next {
    right: -12px;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .model-showcase__stage {
    grid-template-areas:
      "name"
      "height"
      "portrait"
      "age"
      "about";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(100px, auto) minmax(90px, auto) 220px minmax(90px, auto) minmax(145px, auto);
  }

  .model-showcase__pagination {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .model-showcase__pagination button {
    width: 34px;
    height: 34px;
  }

  .model-detail {
    padding: 1rem 0.85rem;
  }

  .model-detail--name,
  .model-detail--height,
  .model-detail--age,
  .model-detail--about {
    align-items: flex-start;
    border-radius: 0;
    text-align: left;
  }

  .model-detail--name {
    border-radius: 24px 24px 0 0;
  }

  .model-detail--about {
    border-radius: 0 0 24px 24px;
  }

  .model-showcase__portrait {
    width: min(190px, calc(100vw - 80px));
  }

  .model-showcase__arrow--previous {
    left: 0;
  }

  .model-showcase__arrow--next {
    right: 0;
  }

  .model-detail__label {
    font-size: 0.75rem;
  }

  .model-detail--height > p,
  .model-detail--age > p {
    font-size: 1.25rem;
  }

  .model-detail h2 {
    font-size: 1.12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-grid img,
  .model-showcase__arrow,
  .model-showcase__pagination button,
  .gallery-network__photo,
  .gallery-network__hub,
  .gallery-network__hub-icon,
  .gallery-network__connectors path {
    animation: none;
    transition: none;
  }
}
