/* Gallery page: static editorial layout, no filter/lightbox JS */
.page-gallery .section-khutton-gallery [class*="uk-animation"] {
  opacity: 1 !important;
  transform: none !important;
}

.page-gallery .khutton-gallery-story__media img {
  touch-action: pan-y pinch-zoom;
}

.section-khutton-gallery {
  background:
    radial-gradient(circle at top right, rgba(194, 24, 122, 0.08), transparent 34%),
    linear-gradient(180deg, #fff 0%, #faf7fb 100%);
  padding: clamp(72px, 8vw, 120px) 0;
}

.section-khutton-gallery .section-title h3 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
}

.section-khutton-gallery__lead {
  max-width: 680px;
  margin: 0 auto 40px;
  color: #6b5a78;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.7;
  text-align: center;
}

.khutton-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 42px;
}

.khutton-gallery-filters button {
  appearance: none;
  border: 1px solid rgba(90, 14, 143, 0.16);
  background: #fff;
  color: #1a1024;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.khutton-gallery-filters button.is-active,
.khutton-gallery-filters button:hover {
  background: linear-gradient(135deg, #5a0e8f, #c2187a);
  border-color: transparent;
  color: #fff;
}

.khutton-gallery-grid {
  column-count: 4;
  column-gap: 18px;
}

.khutton-gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(26, 16, 36, 0.08);
}

.khutton-gallery-item a {
  display: block;
  position: relative;
  color: #fff;
  text-decoration: none;
}

.khutton-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.55s cubic-bezier(0.22, 0.85, 0.32, 1);
}

.khutton-gallery-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(26, 16, 36, 0) 35%, rgba(26, 16, 36, 0.78) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.khutton-gallery-item__tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 8px;
}

.khutton-gallery-item__title {
  font-family: "Cormorant", serif;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
}

.khutton-gallery-item:hover img {
  transform: scale(1.04);
}

.khutton-gallery-item:hover .khutton-gallery-item__overlay {
  opacity: 1;
}

.khutton-gallery-item--feature {
  column-span: all;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-bottom: 28px;
  border-radius: 24px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 24px 60px rgba(26, 16, 36, 0.12);
}

.khutton-gallery-feature__media,
.khutton-gallery-feature__copy {
  position: relative;
  min-height: 100%;
}

.khutton-gallery-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.khutton-gallery-feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
  background: linear-gradient(135deg, #5a0e8f, #c2187a);
  color: #fff;
}

.khutton-gallery-feature__copy span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.82;
  margin-bottom: 14px;
}

.khutton-gallery-feature__copy h4 {
  font-family: "Cormorant", serif;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.02;
  margin: 0 0 16px;
  color: #fff;
}

.khutton-gallery-feature__copy p {
  margin: 0 0 24px;
  max-width: 34ch;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.khutton-gallery-cta {
  margin-top: 48px;
  text-align: center;
}

.section-khutton-gallery--preview {
  padding: clamp(56px, 6vw, 96px) 0;
}

.section-khutton-gallery--preview .section-title h3 {
  font-size: clamp(30px, 3.4vw, 48px);
}

.khutton-gallery-grid--preview {
  column-count: 4;
}

.khutton-gallery-cta--preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.khutton-gallery-cta__note {
  margin: 0;
  color: #6b5a78;
  font-size: 15px;
}

.page-gallery .section-khutton-gallery {
  padding-top: clamp(48px, 5vw, 72px);
}

.khutton-gallery-stories {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.khutton-gallery-story {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  padding: clamp(18px, 2vw, 24px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(26, 16, 36, 0.08);
}

.khutton-gallery-story--reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.khutton-gallery-story--reverse .khutton-gallery-story__media {
  order: 2;
}

.khutton-gallery-story--reverse .khutton-gallery-story__body {
  order: 1;
}

.khutton-gallery-story__media {
  overflow: hidden;
  border-radius: 18px;
}

.khutton-gallery-story__media a {
  display: block;
}

.khutton-gallery-story__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 0.85, 0.32, 1);
}

.khutton-gallery-story__media:hover img {
  transform: scale(1.03);
}

.khutton-gallery-story__body {
  padding: clamp(8px, 2vw, 18px);
}

.khutton-gallery-story__tag {
  display: inline-block;
  margin-bottom: 12px;
  color: #c2187a;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.khutton-gallery-story__title {
  margin: 0 0 14px;
  font-family: "Cormorant", serif;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
  color: #1a1024;
}

.khutton-gallery-story__desc {
  margin: 0 0 18px;
  color: #6b5a78;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.75;
  max-width: 48ch;
}

.khutton-gallery-story__link {
  color: #5a0e8f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.khutton-gallery-story__link:hover {
  color: #c2187a;
}

.khutton-gallery-videos {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid rgba(26, 16, 36, 0.08);
}

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

.khutton-gallery-video {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(26, 16, 36, 0.08);
}

.khutton-gallery-video__link {
  display: block;
  position: relative;
  color: #fff;
  text-decoration: none;
}

.khutton-gallery-video__link img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.khutton-gallery-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(26, 16, 36, 0.08), rgba(26, 16, 36, 0.55));
}

.khutton-gallery-video__play i {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #5a0e8f;
  font-size: 18px;
  padding-left: 4px;
}

.khutton-gallery-video__body {
  padding: 20px 22px 24px;
}

.khutton-gallery-video__body h4 {
  margin: 0 0 10px;
  font-family: "Cormorant", serif;
  font-size: 28px;
  line-height: 1.1;
  color: #1a1024;
}

.khutton-gallery-video__body p {
  margin: 0 0 12px;
  color: #6b5a78;
  font-size: 15px;
  line-height: 1.65;
}

.khutton-gallery-video__cta {
  color: #c2187a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

  .khutton-gallery-story--reverse .khutton-gallery-story__media,
  .khutton-gallery-story--reverse .khutton-gallery-story__body {
    order: initial;
  }

  .khutton-gallery-videos__grid {
    grid-template-columns: 1fr;
  }
}
  .khutton-gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 959px) {
  .khutton-gallery-grid {
    column-count: 2;
  }

  .khutton-gallery-item--feature {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 639px) {
  .khutton-gallery-grid {
    column-count: 1;
  }

  .khutton-gallery-filters button {
    padding: 9px 14px;
    font-size: 12px;
  }
}

.section-khutton-catalog {
  background: #1a1024;
  color: #fff;
  padding: clamp(48px, 5vw, 72px) 0;
}

.section-khutton-catalog .section-title {
  margin-bottom: clamp(28px, 3vw, 40px);
}

.section-khutton-catalog__cta {
  margin-top: clamp(28px, 3vw, 40px);
}

.khutton-featured-grid {
  align-items: stretch;
}

.khutton-featured-card {
  height: 100%;
}

.khutton-featured-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.khutton-featured-card__link:hover,
.khutton-featured-card__link:focus-visible {
  color: inherit;
  text-decoration: none;
  transform: translateY(-4px);
  border-color: rgba(240, 166, 207, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.khutton-featured-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.khutton-featured-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.khutton-featured-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #c2187a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.khutton-featured-card__body {
  padding: 18px 18px 20px;
}

.khutton-featured-card__title {
  margin: 0 0 6px;
  font-family: Cormorant, serif;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  color: #fff;
}

.khutton-featured-card__meta {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.khutton-featured-card__price {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.section-khutton-catalog .section-title span {
  color: #f0a6cf;
}

.section-khutton-catalog .section-title h3 {
  color: #fff;
}

.section-khutton-catalog .product-card__box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-khutton-catalog .product-card__title a,
.section-khutton-catalog .product-card__price {
  color: #fff;
}

.section-khutton-catalog .product-card__title span {
  color: rgba(255, 255, 255, 0.58);
}

.section-khutton-catalog .uk-background-muted {
  background: transparent !important;
}

.section-khutton-catalog .uk-button-default {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.section-khutton-catalog .uk-button-default:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Homepage major gallery — editorial overlapping mosaic */
.section-khutton-gallery--home {
  position: relative;
  padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(circle at 18% 0%, rgba(194, 24, 122, 0.12), transparent 36%),
    radial-gradient(circle at 82% 12%, rgba(61, 8, 102, 0.14), transparent 34%),
    linear-gradient(180deg, #140820 0%, #1f0a32 14%, #faf7fb 28%, #fff 100%);
  margin-top: -1px;
}

.section-khutton-gallery--home .section-title span {
  color: rgba(255, 255, 255, 0.72);
}

.section-khutton-gallery--home .section-title h3 {
  color: #fff;
  font-size: clamp(32px, 4vw, 56px);
}

.section-khutton-gallery--home .section-khutton-gallery__lead {
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin-bottom: clamp(24px, 3vw, 36px);
  font-size: clamp(15px, 1.4vw, 18px);
}

.section-khutton-gallery--home .khutton-gallery-mosaic {
  min-height: clamp(340px, 38vw, 480px);
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

.section-khutton-gallery--home .khutton-gallery-mosaic__item--1 { width: 22%; aspect-ratio: 4 / 5; top: 12%; left: 3%; z-index: 2; transform: rotate(-3deg); }
.section-khutton-gallery--home .khutton-gallery-mosaic__item--2 { width: 28%; aspect-ratio: 3 / 4; top: 2%; left: 26%; z-index: 5; transform: rotate(1.5deg); }
.section-khutton-gallery--home .khutton-gallery-mosaic__item--3 { width: 20%; aspect-ratio: 1 / 1; top: 10%; right: 26%; z-index: 4; transform: rotate(4deg); }
.section-khutton-gallery--home .khutton-gallery-mosaic__item--4 { width: 23%; aspect-ratio: 4 / 5; top: 36%; left: 11%; z-index: 3; transform: rotate(2deg); }
.section-khutton-gallery--home .khutton-gallery-mosaic__item--5 { width: 25%; aspect-ratio: 5 / 6; top: 30%; left: 39%; z-index: 6; transform: rotate(-2deg); }
.section-khutton-gallery--home .khutton-gallery-mosaic__item--6 { width: 21%; aspect-ratio: 4 / 5; top: 24%; right: 5%; z-index: 5; transform: rotate(-4deg); }
.section-khutton-gallery--home .khutton-gallery-mosaic__item--7 { width: 18%; aspect-ratio: 1 / 1; bottom: 6%; left: 30%; z-index: 4; transform: rotate(3deg); }
.section-khutton-gallery--home .khutton-gallery-mosaic__item--8 { width: 22%; aspect-ratio: 4 / 5; bottom: 2%; right: 19%; z-index: 3; transform: rotate(-1deg); }

.section-khutton-gallery--home .khutton-gallery-stories {
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(8px, 1.5vw, 16px);
}

.section-khutton-gallery--home .khutton-gallery-story {
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(10px, 1.2vw, 14px);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(26, 16, 36, 0.07);
}

.section-khutton-gallery--home .khutton-gallery-story--reverse {
  grid-template-columns: 1.15fr 0.85fr;
}

.section-khutton-gallery--home .khutton-gallery-story__media img {
  min-height: 0;
  max-height: clamp(168px, 18vw, 220px);
  aspect-ratio: 4 / 3;
}

.section-khutton-gallery--home .khutton-gallery-story__body {
  padding: clamp(4px, 1vw, 10px);
}

.section-khutton-gallery--home .khutton-gallery-story__tag {
  margin-bottom: 8px;
  font-size: 11px;
}

.section-khutton-gallery--home .khutton-gallery-story__title {
  margin-bottom: 8px;
  font-size: clamp(22px, 2.2vw, 30px);
}

.section-khutton-gallery--home .khutton-gallery-story__desc {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.section-khutton-gallery--home .khutton-gallery-cta {
  margin-top: clamp(24px, 3vw, 32px);
}

.section-khutton-gallery--home .khutton-gallery-cta__note {
  font-size: 14px;
}

.khutton-gallery-mosaic {
  position: relative;
  min-height: clamp(560px, 58vw, 820px);
  max-width: 1380px;
  margin: 0 auto clamp(56px, 7vw, 88px);
  padding: 0 clamp(12px, 2vw, 24px);
}

.khutton-gallery-mosaic__item {
  position: absolute;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(8, 0, 16, 0.38);
  transition: transform 0.45s cubic-bezier(0.22, 0.85, 0.32, 1), box-shadow 0.35s ease;
  text-decoration: none;
}

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

.khutton-gallery-mosaic__item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 36px 84px rgba(8, 0, 16, 0.46);
  z-index: 8 !important;
}

.khutton-gallery-mosaic__item--1 { width: 24%; aspect-ratio: 4 / 5; top: 10%; left: 2%; z-index: 2; transform: rotate(-3deg); }
.khutton-gallery-mosaic__item--2 { width: 31%; aspect-ratio: 3 / 4; top: 0; left: 24%; z-index: 5; transform: rotate(1.5deg); }
.khutton-gallery-mosaic__item--3 { width: 22%; aspect-ratio: 1 / 1; top: 8%; right: 24%; z-index: 4; transform: rotate(4deg); }
.khutton-gallery-mosaic__item--4 { width: 26%; aspect-ratio: 4 / 5; top: 34%; left: 10%; z-index: 3; transform: rotate(2deg); }
.khutton-gallery-mosaic__item--5 { width: 28%; aspect-ratio: 5 / 6; top: 28%; left: 38%; z-index: 6; transform: rotate(-2deg); }
.khutton-gallery-mosaic__item--6 { width: 23%; aspect-ratio: 4 / 5; top: 22%; right: 4%; z-index: 5; transform: rotate(-4deg); }
.khutton-gallery-mosaic__item--7 { width: 20%; aspect-ratio: 1 / 1; bottom: 4%; left: 28%; z-index: 4; transform: rotate(3deg); }
.khutton-gallery-mosaic__item--8 { width: 24%; aspect-ratio: 4 / 5; bottom: 0; right: 18%; z-index: 3; transform: rotate(-1deg); }

.section-khutton-gallery--home .khutton-gallery-stories,
.section-khutton-gallery--home .khutton-gallery-cta {
  position: relative;
  z-index: 2;
}

@media (max-width: 959px) {
  .khutton-gallery-mosaic {
    min-height: 680px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0 16px;
  }

  .section-khutton-gallery--home .khutton-gallery-mosaic {
    min-height: 520px;
    margin-bottom: 24px;
  }

  .section-khutton-gallery--home .khutton-gallery-story {
    grid-template-columns: 1fr;
  }

  .section-khutton-gallery--home .khutton-gallery-story--reverse .khutton-gallery-story__media,
  .section-khutton-gallery--home .khutton-gallery-story--reverse .khutton-gallery-story__body {
    order: initial;
  }

  .section-khutton-gallery--home .khutton-gallery-story__media img {
    max-height: 200px;
  }

  .khutton-gallery-mosaic__item {
    position: relative;
    inset: auto !important;
    width: 100% !important;
    aspect-ratio: 4 / 5;
    transform: none !important;
  }

  .khutton-gallery-mosaic__item--5,
  .khutton-gallery-mosaic__item--6,
  .khutton-gallery-mosaic__item--7,
  .khutton-gallery-mosaic__item--8 {
    display: none;
  }
}

@media (max-width: 639px) {
  .section-khutton-gallery--home .section-title h3 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .khutton-gallery-mosaic__item--4 {
    display: none;
  }
}
