/* =========================
   POST LAYOUT (post-layout.css)
   ========================= */
.ll-post-surface {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.ll-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin: 24px 0;
}

/* =========================
   GALLERY ROW (spans both columns)
   ========================= */
.ll-gallery-row {
  grid-column: 1 / -1;      /* span left + right columns */
  margin-top: 8px;          /* tweak spacing as needed */
}

.ll-gallery-row .ll-gallery-heading {
  margin: 8px 0 12px;
}

/* Ensure the carousel fills the available row width */
.ll-gallery-row .carousel-wrapper,
.ll-gallery-row .carousel {
  width: 100%;
}

/* Keep nav buttons inside the gallery row edges */
.ll-gallery-row .scroll-button.left  { left: 4px; }
.ll-gallery-row .scroll-button.right { right: 4px; }

.ll-left-column,
.ll-right-column { 
  display: flex; 
  flex-direction: column; 
  gap: 20px; 
  min-width: 0; 
}

.post-header { text-align: center; }

.post-header-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
}

.post-image img,
.featured-image img { max-width: 100%; height: auto; }

.post-description { line-height: 1.6; }

.business-logo { max-width: 300px; height: auto; }
.business-logo img { max-width: 250px; height: auto; }

/* Full-width sections (gallery / related offers) */
.ll-full-width-section { margin: 32px 0; }
.ll-full-width-section .carousel-wrapper { width: 100%; }

/* Responsive */
@media (max-width: 900px) {
  .ll-section-grid { grid-template-columns: 1fr; }
  .post-header-grid { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
  .ll-section-grid { gap: 24px; }
  .business-logo { max-width: 240px; }
}

/* =========================
   SOCIAL (components-social.css)
   ========================= */
.social-links-section h3 { margin: 0 0 8px; }

.social-media-icons {
  display: flex;
  flex-direction: column;   /* default: one per line */
  gap: 10px;
  margin-top: 10px;
}

.social-media-icons a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.social-icon-img {
  height: 28px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin: 9px 0;
}

/* Instagram: tight pair of icons, nudge the second */
.social-media-icons a.instagram-link { gap: 0; }
.social-icon-img.instagram2 { position: relative; top: 3px; margin-left: 3px; }

.twitter-label { margin-left: 6px; font-size: 0.9em; }

/* Variant: two-column grid for social rows */
.social-media-icons.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

@media (max-width: 420px) {
  .social-media-icons.two-col { grid-template-columns: 1fr; }
}

/* =========================
   CAROUSEL (components-carousel.css)
   ========================= */
.carousel-wrapper { position: relative; }

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 0;
}

.carousel-item { scroll-snap-align: start; }

.carousel-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

.scroll-button {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: none; background: #fff; width: 36px; height: 36px; border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,.15); cursor: pointer;
}
.scroll-button.left { left: -6px; }
.scroll-button.right { right: -6px; }

.carousel-empty { text-align: center; color: #777; }

/* =========================
   LOCATION / FACTS (components-location.css)
   ========================= */
.address-map-container {
  margin: 60px 0;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 8px;
}
.map-address,
.address-map-container .map-address { margin: 0 0 10px; }

.google-map { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.google-map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.company-facts {
  padding: 15px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.company-facts h3, .company-facts h4 { margin: 10px 0 6px; }
.company-facts p { margin: 0 0 12px; white-space: pre-wrap; }

/* =========================
   ADMIN BOX (components-admin.css)
   ========================= */
.admin-controls {
  background: #fff;
  border: 1px dashed #ccc;
  padding: 15px;
  margin-bottom: 20px;
}
.admin-controls__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.admin-controls__note { margin: 0; font-style: italic; }
.admin-controls__actions { display: flex; gap: 10px; }
