@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Quicksand:wght@300..700&display=swap');
*{
    box-sizing: border-box;
}
body {
    font-family: "Nunito", sans-serif;
    margin: 0;
    padding: 0;
}
/*------------------- HEADER SEKCIJA -------------------*/
header {
  border-bottom: 1px solid #ccc;
  background-color: white;
  border-bottom: red 1px solid;
  margin: center;
}
.logo{
    -outline: red dotted 2px;
    width: 120px;
    height: 60px;
    margin-left: 10px;
    margin-top: 5px;
    background-image: url('../img/mima-logo.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    object-fit: fill;
}
.nav-link, .dropdown-item{
    color: red;
    background-color: white;
}
.dropdown-item:active{
    background-color: red;
}




/*------------------- MAIN CONTAINER -------------------*/
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 kolona za fleksibilan layout */
  gap: 16px;
  padding: 30px;
  width: 100%;
  -outline: red 1px solid;
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  height: 330px;
  object-fit:cover;
  display: block;
  -border-radius: 6px;
  -outline: red 1px solid;
}

/* Prvi red */
.wide-2-3 {
  grid-column: span 4; /* 4/6 = 2/3 */
}
.small {
  grid-column: span 1; /* 1/6 */
}

/* Široke slike koje trebaju zauzeti pola ili više */
.wide {
  grid-column: span 4; /* ili 3 ako želiš pola — možeš prilagoditi */
}

/*-------------- ANIMACIJE -----------*/
.slide-in-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s ease-out;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s ease-out;
}

.slide-in-left.show,
.slide-in-right.show {
  opacity: 1;
  transform: translateX(0);
}


/*------------------- FOOTER -------------------*/
.footer {
  background: red;
  margin-top: 40px;
  padding: 2rem 1rem;
  color: white;
}

.footer h6 {
  font-weight: bold;
  margin-bottom: 10px;
}

.footer ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.footer ul li a{
    text-decoration: none;
    color: white;
}
.footer .row > div {
  margin-bottom: 1.5rem;
}

.footer .text-center {
  margin-top: 1rem;
  font-size: 0.875rem;
}
.footer .col-md-3 ul{
    border-left: white 1px solid;
    padding-left: 10px;
    height: 120px;
}


/*------------------- MOBILNA VERZIJA -------------------*/
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .wide, .wide-2-3 {
    grid-column: span 2;
  }

  .small {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .kategorije {
    flex-direction: column;
    align-items: center;
  }

  .kategorija {
    width: 100%;
    max-width: 300px;
  }

  .kategorija .slika {
    width: 100%;
    height: 200px;
  }

    .hero {
    padding: 2rem 1rem;
    margin: 2rem 1rem;
  }

  .logo{
    -outline: red dotted 2px;
    padding: 30px;
    width: 100px;
    background-image: url('../img/mima-logo.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

  .hero h1 {
    font-size: 1.4rem;
  }
  .footer .row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
  }
  .footer .col-md-3{
    width: 50%;
  }
}
/*
@media (max-width: 600px) {
    .gallery {
    grid-template-columns: 1fr;
  }
    .gallery img{
        width: 330px;
    }
    .wide, .wide-2-3, .small {
    grid-column: span 1;
  }
}
  */

/*------------------- MOBILNA GALERIJA CENTRIRANA -------------------*/
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr; /* jedna kolona */
    gap: 10px;                 /* razmak između slika */
    padding: 0 16px;           /* razmak od rubova ekrana */
    box-sizing: border-box;    /* padding uračunat u širinu */
  }

  .wide, .wide-2-3, .small {
    grid-column: span 1 !important;
  }

  .gallery img {
    width: 100% !important;   /* zauzima cijelu širinu kolone */
    aspect-ratio: 1 / 1;      /* kvadrat */
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 6px;       /* po želji */
  }
}
