/*
 * Styles for Rota dos Têxteis
 */

@import url('https://fonts.googleapis.com/css2?family=Fredericka+the+Great&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

html, body {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 16px;
    line-height: 32px;
    margin: 0;
}
@media (min-width: 576px) {
    html, body {
        font-size: 1.15em;
        line-height: 1.65em;
    }
}
body {
    color: #455a64;
    background-color: #fff8e1;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}
@media (min-width: 576px) {
    body {
        padding: 50px;
    }
}
.logo {
    width:200px;
    height:auto;
}
@media (min-width: 768px) {
    .logo {
        width: 260px;
    }
}
header {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}
header strong {
    border-top: 2px solid #455a64;
    padding: 10px 0;
}


.menu {
    display: none;
}

/* Show when active */
.menu.active {
    display: block;
}

/* Hamburger style */
.hamburger {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    margin: 10px;
}


main {
    display: flex;
    flex-direction: column;
    gap: 50px;
}
h2 {
    font-family: "Fredericka the Great", serif;
    font-weight: 400;
    font-size: 1.2em;
    font-style: normal;
    text-transform: uppercase;
    color: #bf360c;
}
@media (min-width: 576px) {
    h2 {
        font-size: 1.4em;
    }
}
a {
    color: #bf360c;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
ul {
    padding-left: 1.0em;
}
li {
    line-height: 2.00em;
}

.partners {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 10px 10px;
}

.partners li {
    background-color: #0000000a;
    height: stretch;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    height: 120px;
}
.partners li:hover {
    background-color: #00000030;
}
.partners li img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .partners {
        grid-template-columns: repeat(3, 1fr);
    }
    .partners li {
        padding: 20px;
        height: 160px;
    }
    .partners li img {
        max-width: 120px;
        max-height: 120px;
    }
}

@media (min-width: 992px) {
    .partners {
        grid-template-columns: repeat(5, 1fr);
    }
}

.gallery {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 10px;
}
.gallery li img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}
.gallery li img:hover {
    filter: brightness(0.5);
}

@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery li img {
        height: 350px;
    }
}

@media (min-width: 992px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
    .gallery li img {
        height: 400px;
    }
}

.lightbox {
  border: none;
  padding: 0;
  background: rgba(0,0,0,0.9);
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
}

.lightbox::backdrop {
  background: rgba(0,0,0,0.9);
}

.image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  overflow: hidden;
}

#dialog-image {
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* active state */
.lightbox.show #dialog-image {
  transform: scale(1);
  opacity: 1;
}

/* buttons */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 20px;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

/* mobile tweaks */
@media (max-width: 768px) {
  .nav {
    font-size: 30px;
    padding: 10px;
  }
}