/* Import Roboto Font */
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,400;0,700;1,300;1,100&display=swap");

/* General Styles */
body {
  font-family: "Roboto", sans-serif;
  text-align: center;
  background-color: white;
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
}

h1 {
  font-weight: 400; /* Try 400 for normal, 500 for medium, 700 for bold */
}

/* Header */
header {
  padding: 20px;
  background-color: white;
  border-bottom: 1px solid black;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: black;
  font-weight: 300;
}

.social a:hover {
  opacity: 0.7;
}

img.instagram-icon {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain;
  display: inline-block;
}

/* Homepage Grid Section */
.category-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1rem;
  padding: 1rem;
  max-width: 2000px;
  margin: auto;
}

/* Individual Category Card */
.category-card a {
  display: block;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.category-card a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 4;
  object-fit: cover;
  display: block;
}

.category-card h2 {
  margin: 1rem;
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  text-align: center;
}

/* Back Link */
.back-link {
  margin: 20px auto;
  text-align: center;
}

.back-link a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.back-link a:hover {
  background: #e0e0e0;
}

/* Floating HOME Button */
.home-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border: none;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-decoration: none;
  z-index: 1000;
}

.home-button img {
  width: 24px;  /* Adjust size here */
  height: 24px;
  transition: transform 0.2s ease;
}

.home-button:hover img {
  transform: scale(1.3);
}

/* Gallery Layout (Responsive Masonry) */
.gallery {
  column-count: 4;
  column-gap: 1em;
  max-width: 2000px;
  margin: auto;
  padding: 1em;
}

.gallery-img {
  width: 100%;
  height: auto;
  margin-bottom: 1em;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.25s ease;
  break-inside: avoid;
}

.gallery-img:hover {
  transform: scale(1.03);

}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(211, 211, 211, 0.87);
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Modal Image Fullscreen */
.modal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  margin: auto;
}

/* Navigation Zones */
#prevBtn,
#nextBtn {
  position: absolute;
  top: 0;
  width: 15vw;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
}

#prevBtn {
  left: 0;
}

#nextBtn {
  right: 0;
}

/* Arrow Styling (One Arrow Only Using ::before) */
#prevBtn::before,
#nextBtn::before {
  content: ''; /* left: ‹ , right: › */
  font-size: 4rem;
  color: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

#nextBtn::before {
  content: '';
}

/* Hover Highlight Effect */
#prevBtn:hover,
#nextBtn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

#prevBtn:hover::before,
#nextBtn:hover::before {
  color: rgba(0, 0, 0, 0.85);
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Close Button (Top Right) */
.close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 24px;
  color: black;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.2s ease;
}

.close:hover {
  transform: scale(1.2);
  background: #f0f0f0;
}

.modal-bg-close {
  position: absolute;
  top: 0;
  left: 15vw;
  width: 70vw;
  height: 100vh;
  z-index: 9; /* behind arrows, above modal bg */
  cursor: pointer;
}

/* Footer */
.footer {
  background-color: #f0f0f0;
  padding: 1em;
  font-size: 0.9em;
  color: #555;
}

/* Responsive Gallery Columns */
@media (max-width: 1600px) {
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 1000px) {
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery {
    column-count: 1;
  }
}
