body {
  background: #1a1a1a;
  color: #f7fafc;
  font-family: 'Open Sans', sans-serif;
}

body.dark {
  background: #1a1a1a;
  color: #f7fafc;
}

header, nav {
  background: transparent;
}

.dark header, .dark nav {
  background: #1a1a1a;
}

/* --- Zaglavlje i Naslov --- */
header {
  text-align: center;
  padding-top: 5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.title-script {
  font-family: 'Allura', cursive !important;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0; /* Uklonjena donja margina */
}

/* --- Navigacija --- */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
  padding: 0.25rem 2rem;
  margin-top: -0.5rem; /* Dodatno primaknuto naslovu */
}

nav a {
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  padding-bottom: 4px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

nav a:hover {
  opacity: 0.7;
}

/* Aktivni link u meniju */
nav a.active {
  border-bottom: 2px solid #2d3748;
}

.dark nav a.active {
  border-bottom: 2px solid #f7fafc;
}

/* --- Meni i prilagođavanja --- */
#menu {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100%;
}

@media only screen and (min-width: 768px) {
  #menu {
    display: block;
    position: unset;
    height: unset;
  }
}

#menu:target {
  display: block;
}

/* --- Prikaz slika u karticama sa Hover Zoom-om --- */
.image-card {
  overflow: hidden;
  border-radius: 4px;
}

.image-card img {
  width: 100%;
  height: 280px; 
  object-fit: contain;
  background-color: #000;
  transition: transform 0.4s ease-in-out;
}

.image-card:hover img {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .image-card img {
    width: 450px;
    height: 350px; 
    object-fit: contain;
    background-color: #000;
  }
}

/* --- Lightroom (Pop-up slika sa zamućenjem pozadine) --- */
.lightroom {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100000;
}

.lightroom img, .lightroom div {
  width: auto;
  max-width: 70%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  background: #fff;
  color: #2d3748;
  border-radius: 4px;
}

/* --- Mobilni ekrani --- */
@media only screen and (max-width: 767px) {
  header {
    padding-top: 2.5rem;
  }

  nav {
    gap: 1.5rem;
    padding: 0.5rem 1rem;
    margin-top: 0;
  }

  .lightroom img, .lightroom div {
    width: auto;
    max-width: 90%;
    max-height: 70vh;
  }
}

@supports (position: fixed) {
  @media only screen and (max-width: 767px) {
    #menu {
      position: fixed;
    }
  }
  .lightroom {
    position: fixed;
  }
}