@import url('https://fonts.cdnfonts.com/css/gotham-6');

:root {
  --primary-color: #1f1f1f;
  --text-color: #030304;
  --white: #ffffff;
}

.decorados-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.decorados-tabs a {
  height: 47px;
  padding: 0 25px;
  border: 1px solid #1f1f1f;
  color: var(--text-color);
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  border-radius: 35px;
}

.decorados-tabs a.active {
  background: #4D4131;
  color: var(--white);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 316 / 225;
  object-fit: cover;
}

.gallery-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 50px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-item-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gallery-item-cta {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  text-decoration: underline;
  text-transform: uppercase;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 1000;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  display: flex;
  gap: 43px;
  align-items: center;
  max-width: 80%;
}

.modal-close {
  position: absolute;
  top: 0;
  right: -76px;
  background: var(--white);
  border: none;
  cursor: pointer;
  width: 60px;
  height: 60px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  object-position: center;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-actions {
  display: flex;
  gap: 30px;
  align-items: center;
}

.modal-action-btn {
  background: none;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  padding: 0;
  font-size: 14px;
  color: var(--white);
  text-transform: uppercase;
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 50px;
}

.pagination button {
  width: 125px;
  height: 45px;
  border: 1px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 600;
  background: none;
  justify-content: center;
  border-radius: 40px;
  cursor: pointer;
}

.pagination button.active {
  background-color: var(--primary-color);
  color: white;
}

.pagination button:disabled {
  cursor: not-allowed;
  border: transparent;
  background: #efefef;
  color: #a3a3a3;
  font-weight: 400;
}

.pagination button:disabled svg {
  opacity: 0.3;
}

.pagination-prev-btn svg {
  transform: rotate(180deg);
}

button.pagination-number-btn {
  width: 45px;
  background: #efefef;
  border: none;
  color: #a3a3a3;
}

.pagination-prev-btn {
  margin-right: 15px;
}

.pagination-next-btn {
  margin-left: 15px;
}

.decorados-main-banner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

.decorados-main-banner img {
  max-width: 100%;
}

.decorados-main-banner-mobile {
  display: none;
}

.decorados-main-banner-title {
  font-family: 'Gotham', sans-serif;  
  font-size: 62px;
  font-weight: 300;
  color: var(--white);
  position: absolute;
}

.decorados-gallery-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 19.5px;
  color: var(--text-color);
  margin-bottom: 30px;
  text-align: center;
}

.thumbnails .splide__arrow {
  width: 60px;
  height: 60px;
  background: #00000033;
  backdrop-filter: blur(10px);
  background-position: center;
  background-repeat: no-repeat;
}

.thumbnails .splide__arrow svg {
  display: none;
}

.thumbnails .splide {
  padding: 70px 0;
}

.thumbnails .splide__arrows--ttb .splide__arrow--prev {
  top: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.778 3.828L8.778 16L6.778 16L6.778 3.828L1.414 9.192L-1.35995e-06 7.778L7.778 1.35995e-06L15.556 7.778L14.142 9.192L8.778 3.828Z' fill='white'/%3E%3C/svg%3E%0A");
}

.thumbnails .splide__arrows--ttb .splide__arrow--next {
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.77864 12.172L6.77864 0L8.77864 0L8.77864 12.172L14.1426 6.808L15.5566 8.222L7.77864 16L0.000640869 8.222L1.41464 6.808L6.77864 12.172Z' fill='white'/%3E%3C/svg%3E%0A");
}

.thumbnails .splide__slide img.active {
  border: 3px solid #fff;
}

.modal-content-main-img {
  position: relative;
  height: calc(60vh + 140px);
  display: flex;
}

.modal-item-infos {
  position: absolute;
  background: #0000001a;
  backdrop-filter: blur(8px);
  bottom: 0;
  width: 100%;
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  height: 70px;
}

.modal-item-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 39.01px;
  letter-spacing: 0.2em;
  color: var(--white);
  text-transform: uppercase;
}

.decorados-video-wrapper {
  display: flex;
  gap: 90px;
  align-items: center;
}

.decorados-video {
  padding: 0 80px;
}

.decorados-video video {
  aspect-ratio: 547 / 340;
  width: 60%;
}

.decorados-video-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  margin-bottom: 10px;
  color: var(--text-color);
}

.decorados-video-description {
  font-size: 16px;
  line-height: 19.5px;
  margin-bottom: 29px;
  color: var(--text-color);
}

.decorados-video-link {
  display: flex;
  height: 47px;
  background: var(--primary-color);
  padding: 0 25px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  width: fit-content;
}

.pagination-mobile {
  display: none;
}

.img-options-popup-content {
  overflow: hidden;
  transition: 0.5s;
  backdrop-filter: blur(8px);
  background: #00000033;
  position: absolute;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 17px;
  display: none;
  padding: 30px 0;
  width: 40px;
  border-radius: 30px;
  top: -202px;
}

.img-options-popup.open .img-options-popup-content {
  display: flex;
}

.img-options-popup-trigger {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 35px;
  background: #fff;
  padding: 0;
  border: none;
  cursor: pointer;
}

.img-options-popup-trigger svg.popup-close {
  display: none;
}

.img-options-popup.open .img-options-popup-trigger svg.popup-close {
  display: block;
}

.img-options-popup.open .img-options-popup-trigger svg.popup-open {
  display: none;
}

.img-options-popup {
  position: relative;
  gap: 14px;
  flex-direction: column;
}

.img-options-popup-content-trigger {
  border: none;
  padding: 0;
  background: transparent;
  display: flex;
  color: #fff;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
  align-items: center;
  cursor: pointer;
  justify-content: center;
}

.img-options-popup-content-trigger:hover {
  text-decoration: underline;
}

.tour-360 {
    position: absolute;
    top: 25px;
    right: 25px;
}

.thumbnails .splide__slide {
  border: none !important;
}

@media (max-width: 1500px) {
  .modal-actions {
    display: none;
  }

  .img-options-popup {
    display: flex;
  }
}

@media (max-width: 1250px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item-content {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 20px;
  }
}

@media (max-width: 1100px) {
  .decorados-video {
    padding: 0 40px;
  }

  .decorados-video-wrapper {
    gap: 30px;
  }

  .decorados-video-title {
    font-size: 16px;
    line-height: 19.5px;
    margin-bottom: 10px;
  }

  .decorados-video-description {
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 17px;
  }
}

@media (max-width: 768px) {
  .decorados-main-banner-mobile {
    display: block;
  }

  .decorados-main-banner-desktop {
    display: none;
  }

  .decorados-video-wrapper {
    flex-direction: column;
  }

  .decorados-video video {
    width: 100%;
  }

  .decorados-video {
    padding: 0;
  }

  .decorados-video-content {
    padding: 0 20px;
  }

  .decorados-video-link {
    width: 100%;
    justify-content: center;
  }

  .decorados-video-title,
  .decorados-video-description {
    text-align: center;
  }

  .decorados-main-banner-title {
    font-size: 48px;
    bottom: 240px;
  }

  .decorados-main-banner {
    margin-bottom: 30px;
  }

  .decorados-gallery-title {
    font-size: 14px;
    line-height: 17px;
    padding: 0 20px;
  }

  .pagination-number-btn {
    display: none !important;
  }

  .pagination-prev-btn span,
  .pagination-next-btn span {
    display: none;
  }

  .pagination .pagination-prev-btn,
  .pagination .pagination-next-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    margin: 0;
  }

  .pagination-mobile {
    display: block;
    font-size: 14px;
  }

  .pagination {
    align-items: center;
    gap: 26px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item-title {
    font-size: 20px;
  }

  .gallery-item-cta {
    font-size: 14px;
  }

  .gallery-item-content {
    gap: 5px;
  }

  .img-options-popup-content-trigger {
    font-size: 0;
    gap: 0;
    justify-content: center;
  }

  .thumbnails {
    max-width: 100%;
    padding: 20px 0;
    background: #fff;
  }

  .thumbnails .splide__slide img {
    width: 100% !important;
    height: auto !important;
  }

  .thumbnails .splide {
    padding: 0;	
  }

  .modal-content {
    flex-direction: column-reverse;
    gap: 0;
    max-width: 100%;
  }

  .thumbnails .splide__slide img.active {
    border: none;
  }

  .modal-close {
    width: 40px;
    height: 40px;
    top: 20px;
    right: 20px;
    z-index: 2;
  }

  .modal.active {
    align-items: flex-end;
  }

  .modal-item-infos {
    background: none;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0 20px;
    height: auto;
    margin-bottom: 26px;
  }

  .modal-image {
    border-radius: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  .modal-content-main-img {
    height: calc(50vh + 145px);
  }

  .modal-item-title {
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
  }

  .tour-360 {
     left: 25px;
     right: auto;
   }
}
