/* Frontend styles for Moxcar Gallery */
.moxcar-gallery {
  --moxcar-primary: #236194;
  --moxcar-secondary: #56a553;
  --moxcar-font: Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;

  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  font-family: var(--moxcar-font);
}

@media (min-width: 640px) {
  .moxcar-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .moxcar-gallery { grid-template-columns: repeat(3, 1fr); }
}

.moxcar-gallery__item {
  position: relative;
  width: 100%;
  border-radius: 0px;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  /* Height will be set dynamically via JavaScript */
}

.moxcar-gallery__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.moxcar-gallery__link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  text-decoration: none;
  color: inherit;
  z-index: 1;
}

.moxcar-gallery__link:hover .moxcar-gallery__img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.moxcar-gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.0));
  color: #fff;
  display: flex; flex-direction: column;
  gap: 2px;
  z-index: 2;
  pointer-events: none;
}
.moxcar-gallery__name {
 
line-height: 1.3;
}
.moxcar-gallery__title,
.moxcar-gallery__desc {
  font-size: 0.875rem;
  opacity: 0.95;
}

/* Keyboard focus */
.moxcar-gallery__item:focus-within,
.moxcar-gallery__item:focus {
  outline: 2px solid var(--moxcar-secondary);
  outline-offset: 2px;
}

/* Gallery alignment utilities */
.moxcar-gallery[data-alignment="left"] {
  margin-left: 0;
  margin-right: auto;
}

.moxcar-gallery[data-alignment="right"] {
  margin-left: auto;
  margin-right: 0;
}

.moxcar-gallery[data-alignment="center"] {
  margin-left: auto;
  margin-right: auto;
}




.moxcar-gallery__caption {
  background: #b9b9b8;
  width: fit-content;
  font-size: 1rem;
  font-weight: 400;
  margin: 0 auto;
    margin-bottom: 0px;
  padding: 1rem 3rem;
  border-radius: 10px;
  margin-bottom: 20px;
   width: 90%;
   text-align: center;;
} 