/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Ubuntu', sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.6;
  padding-bottom: 4rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header styles */
header {
  padding: 4rem 0;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.subtitle {
  color: #666;
  font-style: italic;
  margin-bottom: 1rem;
}

.description {
  max-width: 48rem;
  color: #333;
}

/* Content layout */
.content {
  display: grid;
  grid-template-columns: 5fr 2fr;
  gap: 1rem;
  align-items: start;
}

/* Grid layouts */
.grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
}
.grid-5-column,
.grid-2-columns {
  display: grid;
}

.grid-2-cols {
  grid-template-columns: repeat(2, 1fr);
}
.grid-5-cols {
  grid-template-columns: repeat(5, 1fr);
}

.grid-5-column > .grid-item,
.grid-2-columns > .grid-item {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.grid-5-column img,
.grid-2-columns img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image grid styles */
.image-grid {
  display: grid;
  margin-right: 1rem;
  gap: 1rem;
  -webkit-tap-highlight-color: transparent;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.column-subtitle {
  height: 2em;
  margin-bottom: 0.5em;
  font-size: 1em;
  font-weight: 400;
  color: #444;
  text-align: left;
  letter-spacing: 0.02em;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-image {
  max-height: 80vh;
  max-width: 100%;
  object-fit: contain;
}

.close-button,
.nav-button {
  position: absolute;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.close-button {
  top: -12px;
  right: -12px;
  width: 30px;
  height: 30px;
  font-size: 20px;
}
.nav-button {
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  font-size: 24px;
}
.prev-button {
  left: 1rem;
}
.next-button {
  right: 1rem;
}
.close-button:hover,
.nav-button:hover {
  background: #f3f3f3;
}

/* Section styles */
h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.prompt_information {
  color: #999;
}
.prompt_information * {
  color: inherit;
}
.prompt_titles {
  margin-top: 0.5rem;
  text-decoration: underline;
}
.prompt_text {
  font-size: 1rem;
  font-style: italic;
}