/* ===== Import Font ===== */
@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap');

/* ===== Basic Layout ===== */
body {
  background-color: #fffdd1;
  font-family: 'Fjalla One', sans-serif;
  max-width: none;
  margin: 0;
  padding: 10px 0;
  user-select: none;
  font-size: 16px; /* base size for desktop */
}

a {
  text-decoration: none;
  color: #007acc;
}

a:hover {
  text-decoration: underline;
}

/* ===== Typography ===== */
h1 {
  font-weight: 800;
  color: #504599;
  font-size: 2rem;
  margin-bottom: 0.3em;
}

.subtitle {
  font-size: 0.6rem;
  color: #555;
  margin-top: 5px;
  margin-bottom: 20px;
  text-align: left;
}

/* ===== Gallery Layout ===== */
.gallery {
  width: 100%;
  max-width: none;
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.gallery a {
  width: calc(20% - 10px); /* 5 per row */
  aspect-ratio: 5 / 7;      /* consistent shape */
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.gallery a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  transition: transform 0.2s ease;
}

.gallery a:hover img {
  transform: scale(1.03);
}

/* ===== Responsive Design (Mobile) ===== */
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .subtitle {
    font-size: 0.5rem;
  }

  .gallery a {
    aspect-ratio: auto;
    width: calc(50% - 10px); /* 2 per row */
  }

  .gallery a:first-child {
    width: 100%; /* full width for first image */
  }

  .gallery a img {
    height: 100%;
    width: 100%;
    object-fit: cover; 
  }
}