* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #111;
  color: white;
  margin: 0;
  padding: 0 24px 48px;
}

button, input, textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: #333;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #444;
}

.primary-button {
  background: #bf7b30;
}

.primary-button:hover {
  background: #d58d3d;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
  justify-content: center;
  gap: 20px;
}

.card {
  background: #222;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s, background 0.2s;
}

.card:hover {
  transform: scale(1.04);
  background: #292929;
}

.card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
}

.card p {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}

video {
  display: block;
  margin: 40px auto;
  width: min(800px, 100%);
}

h1 {
  font-size: 48px;
  text-align: center;
}

#user-menu {
  position: absolute;
  top: 20px;
  right: 20px;
}

#user-icon {
  width: 80px;
  cursor: pointer;
  border-radius: 50%;
}

#dropdown {
  background: #222;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}

.hidden {
  display: none !important;
}

#logo-container {
  text-align: center;
  margin-top: 20px;
}

#logo {
  width: 200px;
}

.section-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 26px auto 0;
}

.section-tabs button {
  min-width: 120px;
}

.section-tabs button.active {
  background: #bf7b30;
}

#slideshow {
  width: 90%;
  max-width: 600px;
  margin: 40px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

#slideshow img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.8s ease-in-out;
}

#section-text {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 20px;
}

#section-text h2 {
  font-size: 32px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 10px;
}

.coming-soon {
  font-size: 14px;
  color: #888;
  font-style: italic;
}

.toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px auto 28px;
}

.toolbar .active {
  background: #5d7f6f;
}

.empty-state {
  max-width: 520px;
  margin: 40px auto;
  padding: 28px;
  border: 1px solid #333;
  border-radius: 8px;
  text-align: center;
  color: #ccc;
}

.album-meta {
  color: #bbb;
  font-size: 14px;
}

.album-group {
  max-width: 1120px;
  margin: 0 auto 34px;
}

.album-group h3 {
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  margin: 0 0 18px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.modal {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #1c1c1c;
  border: 1px solid #383838;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.modal-header h2 {
  margin: 0;
}

.album-detail {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
}

.album-detail img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.album-article {
  color: #eee;
  line-height: 1.6;
  white-space: pre-wrap;
}

.album-form {
  display: grid;
  gap: 14px;
}

.album-form label {
  display: grid;
  gap: 6px;
  color: #ddd;
}

.album-form input,
.album-form textarea {
  width: 100%;
  border: 1px solid #444;
  border-radius: 8px;
  background: #101010;
  color: white;
  padding: 11px;
}

.album-form textarea {
  min-height: 180px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 680px) {
  body {
    padding: 0 14px 36px;
  }

  #user-menu {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 14px;
  }

  #user-icon {
    width: 56px;
  }

  .album-detail {
    grid-template-columns: 1fr;
  }
}