* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

/* GALLERY TITLE */
.gallery-hero {
  text-align: center;
  font-size: 3rem;
  margin-top: 5rem;
}
/* IMAGE TRACK (CAROUSEL) */

.pull {
  display: flex;
  gap: 10px;
  align-items: center;
}
.pull-text {
  font-size: 1rem;
  color: #fff;
  font-weight: 300;
  user-select: none;
  width: max-content;
  letter-spacing: 1px;
}

#image-track {
  display: flex;
  align-items: center;
  gap: 4vmin;
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(0%, -50%);
  user-select: none;
  transition: transform 0.3s ease;
}

#image-track .image {
  width: 40vmin;
  height: 56vmin;
  object-fit: cover;
  object-position: 100% center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* FULLSCREEN IMAGE VIEW */
.image.fullscreen {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(1) !important;
  max-width: 90vw;
  max-height: 90vh;
  width: auto !important;
  height: auto !important;
  z-index: 99;
  transition: transform 0.3s ease;
}

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column; /* stack image + button vertically */
}

.image-modal img {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  
  animation: fadeIn 0.3s ease;
}

/* Round back button at bottom center */
.image-modal button.close-btn {
  margin-top: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 1rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  transition: all 0.25s ease;
}

.image-modal button.close-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    nav {
        padding: 1.5rem 2rem;
    }

    nav.scrolled {
        padding: 1rem 2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        padding: 6rem 2rem;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
  }

/* === SHIMMER SKELETON LOADER === */

.skeleton {
  position: relative;
  background: #111; /* background for unloaded images */
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  width: 100px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

.image.loading {
  background-color: #222; /* darker background before load */
  object-fit: cover;
  filter: brightness(0.5);
}
