/* Mobile */
@media (max-width: 768px) {

  h1 {
    font-size: 2rem;
  }

  .user-container,
  .news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    justify-items: stretch;
    width: 100%;
  }

  .user,
  .mobile-news-card {
    padding: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 100%;
    border: 1px solid #bdbdbd;
    background: var(--dark-bg-card);
    margin-bottom: 10px;
  }

  .user-name {
    font-size: 0.9rem;
  }

  .user-photo {
    overflow: hidden;
    margin-bottom: 0px;
  }

  .user-photo img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    object-position: 50% -26%;
    transform: scale(1.5);
  }

  .sort-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    padding: 16px;
  }
  .sort-container .column {
    width: 100%;
    max-width: 260px;
  }

  .modal-content {
    width: 90%;
    max-width: 320px;
    padding: 15px;
  }

  #modalPhoto {
    width: 100%;
  }



  .footer {
    padding: 10px 15px;

    p {
      margin: 5px 0;
      font-size: 14px;
    }

    span {
      font-size: 14px;
    }
  }

  .footer-grid {
    margin-bottom: 12px;
    gap: 10px;
  }

  .footer-bottom {
    padding-top: 12px;
  }

  .footer-col h3 {
    font-size: 16px;
    margin: 0;
  }

  .go-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}

.eye-crop-container {
  position: absolute;
  top: 132%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 358px;
  border-radius: 16px;
  z-index: 10;
}

@media (max-width: 768px) {

  .news-article {
    margin: 10px auto;
    padding: 15px;
  }

  .news-detail-img {
    margin-bottom: 10px;
  }

  .news-detail-title {
    font-size: 1.1rem;
  }

  .news-detail-content {
    font-size: 0.95rem;
  }

  .gallery-nav {
    font-size: 26px;
    padding: 6px;
    width: 40px;
    height: 40px;
  }

  .gallery-nav.prev {
    left: 4px;
    z-index: 1;
  }

  .gallery-nav.next {
    right: 4px;
  }

  .gallery-modal img {
    width: 80%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
  }
}