:root {
  --pico-font-family: "Source Sans 3", "Segoe UI", sans-serif;
  --pico-border-radius: 0.6rem;
}

.hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0.8rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.5rem;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-toolbar {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.inline-form {
  display: inline-block;
}

.thumb {
  width: 220px;
  height: auto;
  border-radius: 0.5rem;
}

.footer {
  margin-top: 3rem;
  padding-bottom: 2rem;
}

.flash.success {
  border-left: 4px solid #1f7a1f;
}

.flash.danger {
  border-left: 4px solid #9f2d2d;
}

.flash.warning {
  border-left: 4px solid #9f7a2d;
}

.flash.info {
  border-left: 4px solid #2d4f9f;
}

.two-col {
  grid-template-columns: 2fr 1fr;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.offer-card {
  overflow: hidden;
  transition: transform 0.2s ease;
}

.offer-card:hover {
  transform: translateY(-4px);
}

.offer-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

#image-picker-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 0.8rem;
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.image-selector {
  transition: border 0.2s ease;
}

.image-selector:hover {
  border: 2px solid #2d9f2d !important;
}
