/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');

/* ========== GLOBAL ========== */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== HEADER ========== */
.site-header {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50px;
  background: rgba(255, 255, 255, 0.55);
  z-index: 10;
  display: flex;
  align-items: center;
}
.header-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    margin-top: 25px;
}
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-underline {
    height: 2px;
    background-color: #555555;
    width: 100%;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .nav-underline {
        display: none;
    }
}

.logo {
  height: 24px;
  width: 88px;
}

.main-nav {
    display: flex;
    gap: 30px;
    margin-left: -336px;
}

/* Desktop Large Screens: <= 1200px */
@media (max-width: 1200px) and (min-width: 993px) {
    .main-nav {
        margin-left: -100px;
    }
}
/* Small Screen Laptops: <= 992px */
@media (max-width: 992px) {
    .main-nav {
        margin-left: -10px;
        gap: 15px;
    }
}
.main-nav a {
  font-weight: 700;
  font-size: 14px;
  color: #555555;
}
    .main-nav a.active {
        opacity: 0.45;
    }

.language-selector {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #555555;
}

.custom-select {
  position: relative;
  margin-left: 0;
}

/* Language dropdown button */
.lang-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 5px;
  font-weight: 700;
}

.lang-btn img {
  width: 17px;
  height: 17px;
  border-radius: 50%;
}

/* Dropdown base state */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  list-style: none;
  padding: 5px 0;
  margin: 5px 0 0;
  display: none;
  width: 80px;
  border: 1px solid #ccc;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Dropdown visible when .show is added to parent */
.custom-select.show .dropdown {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Dropdown list items */
.dropdown li {
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown li img {
  width: 17px;
  height: 17px;
  border-radius: 50%;
}


.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

    .hamburger span {
        width: 25px;
        height: 4px;
        background: #555555;
        border-radius: 2px;
    }

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
  justify-content: center;
  align-items: center;
}

.mobile-overlay.show {
  display: flex;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 75vh;
  width: 80vw;
  border-radius: 25px;
  padding: 30px 20px;
  z-index: 999;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mobile-menu.show {
  display: flex;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu a {
  font-weight: 700;
  font-size: 20px;
  color: #555555;
  margin: 10px 0;
}

.language-mobile {
  margin-top: 30px;
}

.language-mobile div {
  margin: 5px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.language-mobile img {
  width: 17px;
  height: 17px;
  border-radius: 50%;
}



/* Mobile & Tablet: <= 768px */
@media (max-width: 768px) {
  .site-header {
    background: transparent;
  }
 .main-nav,
  .language-selector {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .container {
    justify-content: flex-end;
  }

  .logo {
    display: none;
  }


}

/* Mobile Small: <= 570px */
@media (max-width: 570px) {
  .mobile-overlay {
    background: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    padding-top: 0;
  }

 .main-nav,
  .language-selector {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    width: 80vw;
    height: 70vh;
    padding: 30px 20px;
    align-items: center;
    justify-content: center;
  }

  .mobile-logo {
    display: none;
  }

  .close-menu {
    color: #555;
    font-size: 26px;
    top: 15px;
    right: 15px;
  }

  .mobile-menu a {
    color: #555555;
    font-size: 18px;
  }

  .language-mobile strong,
  .language-mobile a {
    color: #555555;
  }

  .language-mobile div {
    margin: 5px 0;
    justify-content: center;
  }
}

/* ========== GALLERY HEADLINE SECTION ========== */
.gallery-section {
    padding-top: 100px;
    padding-bottom: 60px;
    max-width: 963px;
    margin: 0 auto;
}

.gallery-headline {
    font-size: 25px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 30px;
    margin-top: 30px;
}

@media (max-width: 1200px) {
    .gallery-headline {
        text-align: left;
        padding-left:90px;
    }
}

@media  (max-width: 992px) {
    .gallery-headline {
        text-align: center;
        padding-left: 0px;
    }
}


@media  (max-width: 767px) {
    .gallery-headline {
        text-align: center;
        margin-top: 0px;
    }
}



/* ========== GALERIJA GLAVNA ========== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

.gallery {
    column-count: 3;
    column-gap: 5px;
    max-width: 963px;
    margin: 0 auto;
}

    .gallery img {
        width: 100%;
        margin-bottom: 5px;
        display: block;
        border-radius: 4px;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

        .gallery img.loaded {
            opacity: 1;
            transform: translateY(0);
        }

@media (max-width: 1200px) and (min-width: 768px) {
    .gallery {
        margin-left: 10%;
        margin-right: 10%;
    }

    .gallery-section {
        margin-left: 10%;
        margin-right: 10%;
    }

    .arrow.left {
        left: calc(50% - 400px + 50px);
    }

    .arrow.right {
        right: calc(50% - 400px + 50px);
    }
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

    .popup img {
        max-width: 90%;
        max-height: 90%;
    }

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1.8rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    padding: 0 2;
    line-height: 0.8;
}

    .arrow:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .arrow.left {
        left: calc(50% - 540px - 80px); /* 540px is half of full image max width (1080px) */
    }

    .arrow.right {
        right: calc(50% - 540px - 80px);
    }

@media (max-width: 1200px) {
    .arrow.left {
        left: calc(50% - 400px + 50px); /* 540px is half of the full image width */
    }

    .arrow.right {
        right: calc(50% - 400px + 50px);
    }
}

@media (max-width: 1200px) and (min-width: 768px) {
    .gallery,
    .gallery-section {
        margin-left: 10%;
        margin-right: 10%;
    }

    .arrow.left {
        left: calc(50% - 400px + 50px);
    }

    .arrow.right {
        right: calc(50% - 400px + 50px);
    }
}

@media (max-width: 768px) {
    .gallery {
        column-count: 1;
        max-width: 100%;
    }

        .gallery img {
            width: 100%;
        }

    .arrow.left {
        left: calc(50% - 280px); /* 540px is half of the full image width */
    }

    .arrow.right {
        right: calc(50% - 280px);
    }
}

}
/* FOOTER */
footer {
    background-color: #f5f5f5;
    padding: 20px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 13pt;
}

footer {
    background-color: #f5f5f5;
    padding: 20px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 13pt;
}

.footer-link {
    text-decoration: none;
}

.footer-grey {
    color: #555555;
}

.footer-blue {
    color: #0EA5DE;
}


