* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f1115;
  color: #f4f4f4;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 8%;
  background: #151924;
  border-bottom: 1px solid #2a2f3a;
}

.site-header h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.site-header p {
  margin: 0;
  color: #c6c6c6;
}

.button,
.small-button,
button {
  background: #ffffff;
  color: #111;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  border: 0;
  cursor: pointer;
}

.hero {
  padding: 60px 8% 20px;
  text-align: center;
}

.hero h2 {
  font-size: 38px;
  margin-bottom: 12px;
}

.gallery {
  padding: 20px 8% 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.photo-card {
  background: #171b25;
  border: 1px solid #2a2f3a;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.photo-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  pointer-events: none;
  user-select: none;
}

.photo-info {
  margin-top: 14px;
  text-align: center;
}

.photo-info h3 {
  margin: 8px 0 6px;
  font-size: 20px;
}

.photo-info p {
  color: #c6c6c6;
  margin: 6px 0;
  line-height: 1.4;
}

.photo-info span {
  display: inline-block;
  margin-top: 8px;
  color: #ddd;
  font-size: 13px;
  background: #252b38;
  padding: 5px 10px;
  border-radius: 20px;
}

.photo-reference {
  margin-top: 12px;
  font-size: 13px;
  color: #ffffff;
  text-align: center;
  letter-spacing: 1px;
  font-weight: bold;
  background: #2d3545;
  border: 1px solid #3d4658;
  padding: 8px 10px;
  border-radius: 8px;
  user-select: text;
}

/* PAGINATION */

.pagination {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding-right: 8%;
  box-sizing: border-box;
}

.top-pagination {
  margin-top: 0;
  margin-bottom: 15px;
}

.bottom-pagination {
  margin-top: 10px;
  margin-bottom: 60px;
}

.pagination button {
  background: white;
  color: black;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  min-width: 110px;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination span {
  font-size: 15px;
  font-weight: bold;
  color: white;
}

/* AI SEARCH BUTTON */

#aiSearchBtn {
  background-color: #4FC3F7 !important;
  color: white !important;
  border: none !important;
  border-radius: 8px;
  font-weight: bold;
  padding: 12px 18px;
  transition: background-color 0.2s ease;
}

#aiSearchBtn:hover {
  background-color: #29B6F6 !important;
}

#aiSearchBtn:disabled {
  background-color: #B3E5FC !important;
  color: white !important;
  cursor: not-allowed;
}

/* AI SEARCH LAYOUTS */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.gallery-large {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.gallery-large .photo-card img {
  width: 100%;
  height: auto;
  max-height: 900px;
  object-fit: contain;
}

.gallery-slideshow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.gallery-slideshow .photo-card img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
}

/* FOOTER */

footer {
  padding: 24px 8%;
  color: #aaa;
  border-top: 1px solid #2a2f3a;
}

/* MOBILE */

@media (max-width: 700px) {

  .site-header {
    display: block;
  }

  .hero h2 {
    font-size: 30px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .pagination {
    justify-content: center;
    padding-right: 0;
    gap: 8px;
  }

  .pagination button {
    min-width: 90px;
    padding: 9px 12px;
  }
}