@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;600;700&display=swap');

/* Fix for Elementor canvas template */
.elementor-canvas {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.elementor-canvas-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Kollektsioon Single Page Styles */
.kollektsioon-single {
  min-height: 100vh;
  padding: 0;
  margin: 0 auto;
  max-width: 1600px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* Navigation Section */
.kollektsioon-navigation {
  background-color: transparent;
  padding: 40px 0;
  margin-top: 200px;
  margin-bottom: 20px;
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: auto;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #E3A742;
  color: #000;
  padding: 12px 20px;
  border-radius: 64px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  width: 120px;
  height: 50px;
  justify-content: center;
  flex: 0 0 50px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.nav-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  z-index: 0;
}

.nav-arrow:hover::before {
  transform: translateY(0);
}

.nav-arrow span,
.nav-arrow .nav-arrow-icon {
  position: relative;
  z-index: 1;
}

.nav-arrow:hover {
  color: #fff;
}

.nav-arrow.disabled {
  background-color: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

.nav-arrow.disabled::before {
  display: none;
}

.nav-prev {
  justify-content: center;
  order: 1;
  flex: 0 0 auto;
}

.nav-next {
  justify-content: center;
  order: 2;
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-year {
  font-size: 16px;
  font-weight: 600;
}

.nav-arrow-icon {
  font-size: 18px;
  font-weight: bold;
}

.nav-center {
  flex-basis: 100%;
  order: 3;
  text-align: center;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.kollektsioon-title {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 64px;
  font-weight: 400;
  color: #000;
  margin: 0;
  line-height: 1.2;
}

/* Description Section */
.kollektsioon-description {
  background-color: transparent;
  padding: 20px 0 40px;
  margin-bottom: 20px;
}

.description-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.description-container p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0 auto;
  max-width: 800px;
}

/* Gallery Section */
.kollektsioon-gallery {
  background-color: transparent;
  padding: 40px 0 0;
  margin-bottom: 40px;
}

.gallery-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.gallery-slider {
  display: block;
}

.gallery-slider .slick-slide {
  margin-right: 22px;
}

.gallery-slider .slick-list {
  margin-right: -22px;
}

.gallery-item {
  height: 500px;
}

.gallery-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item a {
  display: block;
  cursor: pointer;
  position: relative;
}

.gallery-item a:hover img {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Fancybox navigation */
.fancybox__nav {
  background: rgba(0, 0, 0, 0.5) !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  font-weight: bold !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.fancybox__nav:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.1) !important;
}

.fancybox__nav--prev {
  left: 20px !important;
}

.fancybox__nav--next {
  right: 20px !important;
}

/* Gallery Navigation */
.gallery-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.gallery-prev,
.gallery-next {
  background-color: #E3A742 !important;
  border: none !important;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: none !important;
}

.gallery-prev::before,
.gallery-next::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  z-index: 0;
  border-radius: 50%;
}

.gallery-prev:hover::before,
.gallery-next:hover::before {
  transform: translateY(0);
}

.gallery-prev img,
.gallery-next img {
  position: relative;
  z-index: 1;
  transition: filter 0.3s ease;
}

.gallery-prev:hover img,
.gallery-next:hover img {
  filter: invert(1);
}

/* Info Section */
.kollektsioon-info {
  background-color: transparent;
  padding: 0 0 40px;
}

.info-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.info-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-label {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.info-value {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.info-value a {
  color: #000;
  text-decoration: none;
}

.info-value a:hover {
  text-decoration: underline;
}

/* Disable Elementor lightbox */
.elementor-lightbox,
.elementor-lightbox__overlay {
  display: none !important;
}

/* Responsive - Tablet */
@media (min-width: 481px) and (max-width: 1024px) {
  .kollektsioon-navigation {
    margin-top: 0px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .kollektsioon-navigation {
    margin-top: 0px;
  }

  .nav-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
    justify-content: space-between;
    align-items: flex-start;
  }

  .nav-prev {
    flex: 0 0 auto;
    order: 1;
  }

  .nav-next {
    flex: 0 0 auto;
    order: 2;
    margin-left: auto;
  }

  .nav-center {
    flex-basis: 100%;
    order: 3;
    padding: 0;
    width: 100%;
    text-align: center;
    margin-top: 20px;
  }

  .kollektsioon-title {
    font-size: 45px;
  }

  .description-container p {
    font-size: 15px;
  }

  .gallery-container {
    padding: 0 12px;
  }

  .gallery-slider {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    transform: none !important;
  }

  .gallery-item {
    flex: 0 0 calc(50% - 8px);
    width: calc(50% - 8px);
    height: auto;
  }

  .gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16;
    border-radius: 22px;
  }

  .gallery-nav {
    margin-top: 16px;
  }
}

@media (max-width: 480px) {
  .gallery-item {
    flex: 0 0 calc(100% - 10px);
  }

  .info-grid {
    flex-direction: column;
    gap: 15px;
  }
}


