/* ===== CATEGORY GRID ===== */
.category-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px;
  justify-content: center;
}

.category-item {
  text-align: center;
  transition: transform 0.3s;
}

.category-item a {
  text-decoration: none;
  color: inherit;
}

.category-item .frame {
  border: 6px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-item:hover .frame {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.category-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.category-item p {
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  text-transform: capitalize;
}





/* Remove underline from category titles */
.categories-title,
.categories-title a,
.category-title,
.category-title a,
.category-link,
.category-link a,
.gallery-category-title,
.gallery-category-title a {
    text-decoration: none !important;
}






/* FINAL OVERRIDE: remove underline on all gallery link states */
#gallery a,
#gallery a:link,
#gallery a:visited,
#gallery a:hover,
#gallery a:active {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    background-image: none !important;
}

/* Ensure caption never inherits underline */
#gallery .caption,
#gallery .caption a {
    text-decoration: none !important;
}






/* --- UNIVERSAL MOBILE LANDSCAPE FOOTER FIX --- */
@media (max-width: 900px) and (orientation: landscape) {
    footer {
        padding: 10px 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        display: block !important;
    }

    footer p {
        font-size: 11px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }
}


/* FIX FOOTER CROPPING IN MOBILE LANDSCAPE */
@media (max-width: 900px) and (orientation: landscape) {
    .container,
    .wrapper,
    .page-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    footer {
        width: 100% !important;
        padding: 12px 16px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    footer p {
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }
}


