/* Import custom fonts */
@import url('clash-display.css');
@import url('khand.css');

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'ClashDisplay-Bold', sans-serif;
}
p,
span,
a,
li,
div {
  font-family: 'Khand-Regular', sans-serif;
  font-size: x-large;
}

/* Masonry Grid - Responsive */
.gallery-masonry {
  column-count: 3;
  column-gap: 1rem;
  width: 100%;
}
@media (max-width: 1024px) {
  .gallery-masonry {
    column-count: 2;
    column-gap: 0.75rem;
  }
}
@media (max-width: 640px) {
  .gallery-masonry {
    column-count: 1;
    column-gap: 0.5rem;
  }
}

/* Gallery items */
.gallery-item {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #1a1a1a;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(184, 192, 255, 0.3);
  z-index: 10;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
  border-radius: 0.75rem;
}
.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 1rem 0.75rem 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover figcaption {
  opacity: 1;
}
.gallery-item.hidden {
  display: none;
}

/* Carousel Polaroids */
.polaroids-carousel {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
  max-width: 100%;
}
.polaroids-viewport {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  user-select: none;
}
.polaroids-viewport.dragging {
  cursor: grabbing;
}
.polaroids-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}
.polaroids-track.no-transition {
  transition: none;
}
.polaroid-item {
  flex-shrink: 0;
  width: calc((100% - 2rem) / 3);
  min-width: 200px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.polaroid-item:hover {
  opacity: 0.85;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(184, 192, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background: #b8c0ff;
  width: 24px;
  border-radius: 4px;
}
@media (max-width: 1024px) {
  .polaroid-item {
    width: calc((100% - 1rem) / 2);
    min-width: 160px;
  }
}
@media (max-width: 640px) {
  .polaroids-track {
    gap: 0;
  }
  .polaroid-item {
    width: 100%;
    min-width: 140px;
  }
}

/* Lightbox */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}
.lightbox-modal.active {
  display: flex;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}
.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(184, 192, 255, 0.2);
  border: none;
  color: #b8c0ff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}
.lightbox-close:hover {
  background: rgba(184, 192, 255, 0.4);
}
.lightbox-caption {
  text-align: center;
  color: #b8c0ff;
  margin-top: 1rem;
  font-size: 0.875rem;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Tooltips */
.nav-tooltip {
  position: relative;
}
.nav-tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: rgba(184, 192, 255, 0.95);
  color: #121212;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.nav-tooltip::after {
  content: '';
  position: absolute;
  right: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(184, 192, 255, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}
.nav-tooltip:hover::before,
.nav-tooltip:focus::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
.nav-tooltip:hover::after,
.nav-tooltip:focus::after {
  opacity: 1;
  visibility: visible;
}
.nav-tooltip:focus-visible {
  outline: 2px solid #b8c0ff;
  outline-offset: 2px;
}
#mobile-nav .nav-tooltip::before {
  right: auto;
  left: 50%;
  top: auto;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(-8px);
}
#mobile-nav .nav-tooltip::after {
  right: auto;
  left: 50%;
  top: auto;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  border-left-color: transparent;
  border-top-color: rgba(184, 192, 255, 0.95);
}
#mobile-nav .nav-tooltip:hover::before,
#mobile-nav .nav-tooltip:focus::before {
  transform: translateX(-50%) translateY(0);
}
#instagram-icon {
  position: relative;
}
#instagram-icon::before {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: rgba(184, 192, 255, 0.95);
  color: #121212;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
#instagram-icon::after {
  content: '';
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: rgba(184, 192, 255, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}
#instagram-icon:hover::before,
#instagram-icon:focus::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
#instagram-icon:hover::after,
#instagram-icon:focus::after {
  opacity: 1;
  visibility: visible;
}
#instagram-icon:focus-visible {
  outline: 2px solid #b8c0ff;
  outline-offset: 2px;
}
