:root {
  --soft-pink: #ffb6c1;
  --blush-pink: #f8a5c2;
  --dusty-pink: #d291bc;
  --deep-pink: #c86b85;
  --dark-bg: #0f0f1a;
  --text-light: #f8f0f3;
  --gold: #f8a5c2;
  --important-color: #f8a5c2;
  --highlight-bg: rgba(248, 165, 194, 0.1);
  --transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-bg: rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-family: "Lora", serif;
  overflow-x: hidden;
  line-height: 1.7;
  letter-spacing: 0.02em;
  cursor: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* --- Noise Overlay --- */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.04"/%3E%3C/svg%3E');
  pointer-events: none;
  z-index: 999;
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-outline {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  top: -100px;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--soft-pink);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--soft-pink);
  transition:
    width 0.3s,
    height 0.3s,
    background-color 0.3s;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 25px 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1250;
  backdrop-filter: blur(10px);
  background: rgba(15, 15, 26, 0.8);
  border-bottom: 1px solid rgba(255, 182, 193, 0.1);
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--soft-pink);
  text-shadow: 0 0 10px rgba(255, 182, 193, 0.3);
  margin-right: auto;
}

.nav-buttons {
  display: flex;
}

.nav-btn {
  text-decoration: none;
  color: var(--text-light);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  border: 1px solid var(--dusty-pink);

  /* Ключевые изменения для центровки */
  display: inline-flex;
  /* Используем flex вместо block */
  align-items: center;
  /* Центровка по вертикали */
  justify-content: center;
  /* Центровка по горизонтали */
  line-height: 1;
  /* Убираем лишние отступы шрифта */
  height: 40px;
  /* Фиксированная высота для стабильности */
  min-width: 140px;
  /* Чтобы кнопки не сжимались слишком сильно */
  padding: 0 20px;
  /* Паддинги только по бокам */

  transition: var(--transition);
  text-transform: uppercase;
  margin-left: 20px;
  background: rgba(248, 165, 194, 0.05);
  text-align: center;
}

.nav-btn:hover {
  background: var(--dusty-pink);
  color: var(--dark-bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(200, 107, 133, 0.3);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  text-align: center;
  z-index: 10;
  position: relative;
  padding: 0 20px;
}

.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--dusty-pink);
  margin-bottom: 15px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  font-weight: 600;
  margin-bottom: 30px;
}

.italic {
  font-style: italic;
  color: var(--soft-pink);
  position: relative;
  display: inline-block;
}

.italic::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
      transparent,
      var(--soft-pink),
      transparent);
  opacity: 0.6;
}

.hero-image-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  width: 520px;
  height: 650px;
  z-index: 1100;
  opacity: 0.2;
  filter: grayscale(100%) brightness(0.9);
  transition: var(--transition);
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity, filter;
}

.hero-image-wrapper:hover {
  transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
  opacity: 0.9;
  filter: grayscale(0%) brightness(1.1);
  box-shadow: 0 35px 70px rgba(200, 107, 133, 0.2);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--dusty-pink);
  font-size: 1.2rem;
  letter-spacing: 2px;
  z-index: 10;
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--dusty-pink), transparent);
  margin-top: 10px;
  animation: pulse 2s infinite;
}

/* --- Marquee Sections --- */
.marquee-section,
.marquee-sectionn {
  background: var(--deep-pink);
  color: var(--dark-bg);
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
  margin: 100px 0;
  margin-top: 200px;
  margin-bottom: 200px;
}

.marquee-section {
  transform: rotate(-2deg);
}

.marquee-sectionn {
  transform: rotate(3deg);
}

.marquee-content,
.marquee-contentn {
  display: inline-block;
  animation: marquee 40s linear infinite;
  font-family: "UnifrakturMaguntia", cursive;
  font-size: 1.8rem;
  padding-right: 20px;
}

.marquee-content span,
.marquee-contentn span {
  margin-right: 40px;
}

/* --- About Section --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.about-section {
  padding: 120px 0;
  padding-bottom: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  margin-bottom: 25px;
  line-height: 1.2;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--important-color);
  opacity: 0.7;
}

.section-subtitle {
  color: var(--dusty-pink);
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 10px;
  opacity: 0.8;
}

.important {
  color: var(--important-color);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.important::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--important-color), transparent);
  opacity: 0.6;
}

.highlight-box {
  background: linear-gradient(135deg,
      rgba(248, 165, 194, 0.08),
      rgba(230, 201, 168, 0.05));
  border-left: 4px solid var(--important-color);
  padding: 30px 35px;
  margin: 30px 0 40px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  /* Используем твою переменную 0.8s */
  will-change: transform, box-shadow;
}

.highlight-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
}

.highlight-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      transparent,
      rgba(255, 255, 255, 0.03),
      transparent);
  pointer-events: none;
}

.highlight-box p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.lead {
  font-size: 1.4rem;
  margin-bottom: 30px;
  color: rgba(248, 240, 243, 0.98);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.features-list {
  list-style: none;
  margin: 35px 0;
}

.features-list li {
  margin-bottom: 20px;
  color: rgba(248, 240, 243, 0.9);
  padding-left: 35px;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.6;
  transition: transform 0.3s ease;
}

.features-list li:hover {
  transform: translateX(5px);
  color: var(--text-light);
}

.features-list li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--important-color);
  font-size: 1.2rem;
  background: rgba(248, 165, 194, 0.1);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 15px 45px;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  margin-top: 180px;
  border-radius: 50px 0 50px 0;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(248, 165, 194, 0.2);
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      transparent,
      rgba(230, 201, 168, 0.05),
      transparent);
  pointer-events: none;
}

.glass-card i {
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 25px;
  display: block;
  opacity: 0.9;
}

.glass-card p {
  font-size: 1.3rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  color: rgba(248, 240, 243, 0.95);
}

/* --- Gallery Section --- */
.gallery-section {
  padding: 80px 0;
  padding-top: 40px;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid rgba(248, 165, 194, 0.3);
  background: rgba(25, 25, 40, 0.5);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  aspect-ratio: 1 / 1;
  will-change: transform, border-color, box-shadow;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(40%) brightness(0.95);
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s ease;
  transform-origin: center;
  object-fit: cover;
  object-position: center;
}

.gallery-item:hover {
  border-color: rgba(248, 165, 194, 0.7);
  box-shadow:
    0 8px 25px rgba(200, 107, 133, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.gallery-item:hover img {
  filter: grayscale(0%) brightness(1.05);
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      transparent 60%,
      rgba(15, 15, 26, 0.85) 100%);
  opacity: 1;
}

/* --- Buttons --- */
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 45px;
  line-height: 1;
  border: 2px solid var(--soft-pink);
  color: var(--text-light);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 40px;
  transition: var(--transition);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  background: rgba(255, 182, 193, 0.05);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.outline-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transition: left 0.6s ease;
}

.outline-btn:hover {
  background: var(--soft-pink);
  color: var(--dark-bg);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 182, 193, 0.3);
}

.outline-btn:hover::before {
  left: 100%;
}

.outline-btn i {
  transition: transform 0.3s ease;
}

.outline-btn:hover i {
  transform: translateX(5px);
}

.center-btn {
  text-align: center;
}

/* --- Footer --- */
.footer-section {
  padding: 120px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      var(--soft-pink),
      transparent);
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.col h3 {
  color: var(--gold);
  margin-bottom: 25px;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.col a,
.col p {
  display: block;
  color: rgba(248, 240, 243, 0.85);
  text-decoration: none;
  margin-bottom: 15px;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

.col a:hover {
  color: var(--soft-pink);
  transform: translateX(5px);
  padding-left: 0;
}

.address,
.contact {
  color: var(--important-color) !important;
  font-weight: 500;
  font-size: 1.1rem !important;
}

.copyright {
  opacity: 0.7;
  font-size: 0.95rem;
  margin-top: 25px;
  font-style: italic;
}

/* --- Animations --- */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

/* --- Fallback for aspect-ratio --- */
@supports not (aspect-ratio: 1 / 1) {
  .gallery-item {
    height: 400px;
  }
}

/* --- Responsive Design --- */

/* Large tablets & small laptops (1200px) */
@media (max-width: 1200px) {
  .navbar {
    padding: 25px 50px;
  }

  .hero-image-wrapper {
    width: 450px;
    height: 550px;
  }
}

/* Tablets (992px) */
@media (max-width: 992px) {
  .navbar {
    padding: 20px 30px;
  }

  .logo {
    font-size: 1.8rem;
  }

  .nav-btn {
    font-size: 0.8rem;
    padding: 6px 15px;
    margin-left: 10px;
  }

  .hero-image-wrapper {
    width: 380px;
    height: 480px;
    opacity: 0.15;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .glass-card {
    padding: 35px 25px;
  }

  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-info {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  @supports not (aspect-ratio: 1 / 1) {
    .gallery-item {
      height: 350px;
    }
  }
}

/* Mobile (768px) */
@media (max-width: 768px) {
  body {
    cursor: auto;
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .cursor-dot,
  .cursor-outline {
    display: none;
  }

  .navbar {
    padding: 15px 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    font-size: 1.6rem;
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
    margin-right: 0;
  }

  .nav-buttons {
    width: 100%;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
  }

  .nav-btn {
    font-size: 0.75rem;
    padding: 0 10px;
    /* Уменьшаем боковые отступы */
    margin: 5px;
    height: 36px;
    /* Чуть меньше высота для мобилок */
    min-width: 100px;
    /* Минимальная ширина, чтобы текст не вылезал */
    flex-grow: 1;
  }

  .hero {
    padding-top: 120px;
    height: auto;
    min-height: 100vh;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 3px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 30px;
  }

  .hero-image-wrapper {
    width: 280px;
    height: 380px;
    opacity: 0.1;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
  }

  .marquee-section,
  .marquee-sectionn {
    margin: 60px 0;
  }

  .marquee-content,
  .marquee-contentn {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-title::after {
    width: 60px;
  }

  .lead {
    font-size: 1.1rem;
  }

  .features-list li {
    font-size: 1rem;
  }

  .highlight-box {
    padding: 25px 30px;
    margin: 25px 0 35px;
  }

  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-item {
    border-width: 1px;
  }

  .outline-btn {
    padding: 14px 35px;
    font-size: 0.9rem;
  }

  .footer-section {
    padding: 80px 0 40px;
  }

  @supports not (aspect-ratio: 1 / 1) {
    .gallery-item {
      height: 300px;
    }
  }
}

/* Small mobile (576px) */
@media (max-width: 576px) {
  .nav-btn {
    font-size: 0.7rem;
    padding: 5px 8px;
    margin: 3px;
    flex: 1 1 calc(33.333% - 6px);
    max-width: none;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero-image-wrapper {
    width: 220px;
    height: 300px;
  }

  .marquee-content,
  .marquee-contentn {
    font-size: 1.2rem;
  }

  .outline-btn {
    padding: 10px 25px;
    font-size: 0.8rem;
  }

  @supports not (aspect-ratio: 1 / 1) {
    .gallery-item {
      height: 250px;
    }
  }
}

/* Very small mobile (375px) */
@media (max-width: 375px) {
  .navbar {
    padding: 10px;
  }

  .nav-btn {
    font-size: 0.65rem;
    height: 32px;
    /* Еще компактнее */
    letter-spacing: 1px;
    min-width: 80px;
  }

  .hero-subtitle {
    font-size: 0.7rem;
    letter-spacing: 2px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-image-wrapper {
    width: 180px;
    height: 250px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .marquee-content,
  .marquee-contentn {
    font-size: 1rem;
  }

  .outline-btn {
    padding: 6px 15px;
    font-size: 0.7rem;
  }
}

/* Tall screens */
@media screen and (max-height: 700px) and (orientation: portrait) {
  .hero {
    min-height: 100vh;
    height: auto;
    padding: 100px 0 40px;
  }

  .hero-image-wrapper {
    margin: 20px auto;
  }
}

/* Landscape orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 100px 0 40px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-image-wrapper {
    width: 200px;
    height: 280px;
  }

  .navbar {
    padding: 10px 20px;
  }

  .nav-btn {
    padding: 4px 10px;
    font-size: 0.7rem;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee-content,
  .marquee-contentn {
    animation: none;
  }
}

/* Print styles */
@media print {

  .noise-overlay,
  .cursor-dot,
  .cursor-outline,
  .navbar,
  .scroll-indicator,
  .marquee-section,
  .marquee-sectionn {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 12pt !important;
  }

  .gallery-item {
    break-inside: avoid;
    border: 1px solid #ccc !important;
    aspect-ratio: unset !important;
    height: auto !important;
  }
}

/* --- Дополнительные стили для галереи с 9 изображениями --- */

/* Адаптивная сетка для 9 элементов */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Для планшетов: 2 колонки */
@media (max-width: 992px) {
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Для мобильных: 1 колонка */
@media (max-width: 768px) {
  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Эффект при нажатии на мобильных устройствах */
.gallery-item.touched {
  transform: scale(0.98) !important;
  border-color: var(--soft-pink) !important;
  box-shadow: 0 0 30px rgba(248, 165, 194, 0.5) !important;
}

/* Улучшенные overlay эффекты для галереи */
.gallery-item .overlay {
  background: linear-gradient(to bottom,
      transparent 40%,
      rgba(15, 15, 26, 0.95) 100%);
  transition: opacity 0.5s ease;
}

.gallery-item:hover .overlay {
  background: linear-gradient(to bottom,
      transparent 30%,
      rgba(15, 15, 26, 0.98) 100%);
}

/* Стили для подзаголовка галереи */
.section-subtitle {
  color: var(--dusty-pink);
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 10px;
  opacity: 0.8;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
  .gallery-item {
    aspect-ratio: 1 / 1.1;
  }

  @supports not (aspect-ratio: 1 / 1.1) {
    .gallery-item {
      height: 280px;
    }
  }
}