*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: inherit; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #fff;
  background-color: #351342;
  background-image: linear-gradient(to bottom, #5C0883 0px, #351342 125px);
  background-repeat: no-repeat;
  background-size: 100% 125px;
  background-position: top left;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
}

.site-header {
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: center;
}

.logo {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 100%;
  max-width: 522px;
  height: auto;
}

.site-main {
  flex: 1 0 auto;
  padding: 16px 0 32px;
}

.h-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 14px;
  padding: 0 12px;
}

@media (min-width: 640px) {
  .h-title { font-size: 24px; }
}

.galleries {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
  margin: 0 0 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gallery-item {
  list-style: none;
}

.gallery-item .card {
  display: block;
  position: relative;
  width: 100%;
  height: 470px;
  background: #1a0d2b;
  border: 1px solid #000;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.gallery-item .card:hover {
  border-color: #5C0883;
}

.gallery-item .card img {
  display: block;
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.gallery-item .card-title {
  display: block;
  height: 20px;
  line-height: 20px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  flex-shrink: 0;
  padding: 20px 0 28px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid #1a0d2b;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

.footer-nav a {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  text-decoration: underline;
}

.footer-nav a:hover {
  color: #ffff00;
  text-decoration: none;
}

.footer-copy {
  margin: 0;
  font-size: 11px;
  color: #ccc;
  line-height: 1.4;
}

@media (min-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .galleries    { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .galleries    { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .galleries    { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

@media (max-width: 479px) {
  .gallery-item .card     { height: auto; }
  .gallery-item .card img { height: auto; aspect-ratio: 2 / 3; }
}

/* ---------- gallery grid overrides ---------- */

.galleries {
  display: block;
  padding: 0;
  margin: 0 0 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gallery-item {
  list-style: none;
}

.gallery-item .card {
  display: block;
  position: relative;
  width: 100%;
  height: 470px;
  background: #1a0d2b;
  border: 1px solid #000;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.gallery-item .card:hover {
  border-color: #5C0883;
}

.gallery-item .card img {
  display: block;
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.gallery-item .card-title {
  display: block;
  height: 20px;
  line-height: 20px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

@media (max-width: 479px) {
  .gallery-item .card     { height: auto; }
  .gallery-item .card img { height: auto; aspect-ratio: 2 / 3; }
}


/* ---------- equal-width gallery grid ---------- */

.gallery-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.gallery-item {
  min-width: 0;
  overflow: hidden;
}

.gallery-item .card,
.gallery-item .card img,
.gallery-item .card-title {
  border-radius: 3px;
}

.gallery-item .card {
  border-radius: 3px;
  overflow: hidden;
}

.gallery-item .card img {
  border-radius: 3px 3px 0 0;
}

.gallery-item .card-title {
  border-radius: 0 0 3px 3px;
}

.eve-intro {
  margin: 0 0 28px;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid #1a0d2b;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.7;
  color: #e0d8e8;
}

.eve-intro p {
  margin: 0 0 12px;
}

.eve-intro p:last-child {
  margin-bottom: 0;
}

.eve-intro a {
  color: #ffff00;
  font-weight: bold;
  text-decoration: underline;
}

.eve-intro a:hover {
  text-decoration: none;
}

@media (min-width: 768px) {
  .eve-intro {
    font-size: 14px;
    padding: 20px 24px;
  }
}


.bio-article {
  font-size: 14px;
  line-height: 1.75;
  color: #e0d8e8;
  padding: 0 0 20px;
}

.bio-article p {
  margin: 0 0 16px;
}

.bio-article h2 {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  margin: 28px 0 12px;
  padding: 0;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .bio-article {
    font-size: 15px;
    line-height: 1.8;
  }
  .bio-article h2 {
    font-size: 20px;
  }
}


.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 1;
  column-gap: 24px;
}

.sitemap-list li {
  margin: 0 0 8px;
  break-inside: avoid;
  font-size: 13px;
  line-height: 1.5;
}

.sitemap-list a {
  color: #e0d8e8;
  text-decoration: none;
}

.sitemap-list a:hover {
  color: #ffff00;
  text-decoration: underline;
}

@media (min-width: 640px) {
  .sitemap-list {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .sitemap-list {
    column-count: 3;
  }
}