@media only screen and (max-width: 1700px) {
  #collection-container {
    grid-template-columns: repeat(4, minmax(25%, 3fr));
  }

  img {
    max-width: 100%;
  }
}

@media only screen and (max-width: 1300px) {
  #about-us p {
    font-size: 1.1em;
  }
}

@media only screen and (max-width: 1100px) {
  #about-us {
    grid-template-columns: 1fr;
    padding: 70px 25px;
    gap: 40px;
    text-align: center;
  }

  .main-pic {
    max-width: 90%;
    margin: 0 auto;
  }

  .info-box {
    max-width: 90%;
    margin: 0 auto;
  }

  #about-us p {
    max-width: 95%;
    margin-top: 20px;
  }

  .info-text {
    font-size: 1.1rem;
    max-width: 95%;
    margin-top: 20px;
  }

  .info-pic {
    width: 50%;
    margin: 30px auto;
  }

  .item-content {
    position: relative;
    width: 100%;
    height: 200px;
  }

  .overlay {
    display: none;
  }

  .expanded-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .expanded-image-container img {
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
  }

  footer {
    text-align: center;
    align-items: center;
    flex-direction: column;
  }

  #footer-info-container {
    text-align: center;
  }
}

@media only screen and (max-width: 768px) {
  h2 {
    font-size: 1.8em;
  }

  .header-content {
    width: 90%;
  }

  .header-content img {
    width: 120px;
    height: 120px;
  }

  .header-content h1 {
    font-size: 2.8em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  }

  .header-btn {
    font-size: 1.6rem;
    padding: 10px 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  }

  #about-us {
    padding: 80px 30px;
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .info-text {
    font-size: 1.2rem;
    max-width: 95%;
    margin: 0 auto;
  }

  .info-pic {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
  }

  #collection {
    padding: 80px 30px;
  }

  #collection-menu a {
    margin: 8px 15px;
    font-size: 1.1rem;
  }

  #collection-container {
    grid-template-columns: repeat(3, minmax(40%, 1fr));
    column-gap: 10px;
    row-gap: 10px;
  }

  .item-content {
    position: relative;
    width: 100%;
    height: 170px;
  }

  .overlay h3 {
    font-size: 1.4em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  }

  .overlay p {
    font-size: 1rem;
    padding: 0 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  }

  #contact-cta {
    padding: 40px 30px;
  }

  .cta-btn {
    font-size: 1.4rem;
    padding: 0.8em 2em;
  }

  footer {
    padding: 80px 30px;
    align-items: center;
    text-align: center;
    flex-direction: column;
  }

  #footer-info-container {
    align-items: center;
    text-align: center;
  }

  .footer-logo img {
    width: 180px;
  }

  #footer-cta {
    font-size: 1.4rem;
    justify-content: center;
  }

  .footer-info h3 {
    font-size: 1.5rem;
  }

  .footer-info a {
    font-size: 1.2rem;
  }

  /* Remove o efeito hover dos itens da galeria em dispositivos móveis */
  .collection-item:hover {
    transform: scale(1);
    box-shadow: none;
    z-index: auto;
  }

  .collection-item:hover img {
    transform: scale(1);
  }
}

@media only screen and (max-width: 480px) {
  h2 {
    font-size: 1.6em;
  }

  .header-content img {
    width: 100px;
    height: 100px;
  }

  .header-content h1 {
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  }

  .header-btn {
    font-size: 1.2rem;
    padding: 8px 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  }

  #about-us {
    padding: 40px 15px;
    gap: 30px;
  }

  .info-text {
    font-size: 1.1rem;
  }

  .info-pic {
    width: 95%;
  }

  #collection {
    padding: 40px 15px;
  }

  #collection-menu a {
    margin: 6px 12px;
    font-size: 1rem;
  }

  #collection-container {
    grid-template-columns: repeat(2, minmax(45%, 1fr));
    column-gap: 8px;
    row-gap: 8px;
  }

  .overlay h3 {
    font-size: 1.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  }

  .overlay p {
    font-size: 0.9rem;
    padding: 0 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  }

  #contact-cta {
    padding: 30px 15px;
  }

  .cta-btn {
    font-size: 1.1rem;
    padding: 0.6em 1.6em;
  }

  footer {
    padding: 40px 15px;
    align-items: center;
    text-align: center;
    flex-direction: column;
  }

  #footer-cta {
    font-size: 1.2rem;
    justify-content: center;
  }

  .footer-logo img {
    width: 150px;
  }

  .footer-info h3 {
    font-size: 1.3rem;
  }

  .footer-info a {
    font-size: 1rem;
  }

  /* Garante que o efeito hover também seja removido aqui */
  .collection-item:hover {
    transform: scale(1);
    box-shadow: none;
    z-index: auto;
  }

  .collection-item:hover img {
    transform: scale(1);
  }
}