/* Mimosa Hotel gallery page */

.gallery-hero {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 620px;
  max-height: 820px;
  overflow: hidden;
  background: var(--mimo-ink);
}

.gallery-hero .splide__track,
.gallery-hero .splide__list,
.gallery-hero__slide {
  height: 100%;
  min-height: inherit;
}

.gallery-hero__slide {
  position: relative;
  display: flex;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.gallery-hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 10, 9, 0.18);
  pointer-events: none;
}

.gallery-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.gallery-section {
  width: 100%;
  padding: 92px 0 120px;
  background: var(--mimo-white);
}

.gallery-section__inner {
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100% - 80px));
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.gallery-section__title {
  width: 100%;
  margin: 0 0 54px;
  color: var(--mimo-ink);
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.gallery-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  width: 100%;
  margin: 0 0 58px;
}

.gallery-tabs__item {
  position: relative;
  margin: 0;
  padding: 0 0 10px;
  color: rgba(10, 10, 9, 0.82);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.gallery-tabs__item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--mimo-ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.gallery-tabs__item:hover,
.gallery-tabs__item.is-active {
  color: var(--mimo-ink);
}

.gallery-tabs__item.is-active::after {
  transform: scaleX(1);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.gallery-grid__item {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f1ef;
}

.gallery-grid__item[hidden] {
  display: none !important;
}

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

.gallery-grid__item:hover .gallery-grid__image,
.gallery-grid__item:hover .gallery-grid__image img {
  transform: scale(1.025);
}

@media (max-width: 991px) {
  .gallery-hero {
    height: 680px;
    min-height: 680px;
  }

  .gallery-section {
    padding: 78px 0 96px;
  }

  .gallery-section__inner {
    width: calc(100% - 56px);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-hero {
    height: 560px;
    min-height: 560px;
  }

  .gallery-section {
    padding: 64px 0 72px;
  }

  .gallery-section__inner {
    width: calc(100% - 32px);
  }

  .gallery-section__title {
    margin-bottom: 38px;
    font-size: 27px;
  }

  .gallery-tabs {
    justify-content: flex-start;
    gap: 24px;
    margin-bottom: 38px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .gallery-tabs::-webkit-scrollbar {
    display: none;
  }

  .gallery-tabs__item {
    flex: 0 0 auto;
    font-size: 13px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
