/* SimpleSite userpage.sections.css — hand-written for Farmacia San Matteo Pavia.
   Defines the section grid and image/video layout helpers. */

.userpage-section, .ssSection, .pageSection {
  display: block;
  margin: 0 0 28px;
  padding: 18px 22px;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #ece6d6;
}

.userpage-section h2, .ssSection h2 { color: #1f3a2a; border-bottom: 2px solid #2e7d3e; padding-bottom: 8px; margin-bottom: 14px; }

/* Image gallery / image rows */
.imageRow, .imageGallery, .ssImageRow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  margin: 12px 0;
}
.imageRow > a, .imageGallery > a, .ssImageRow > a {
  flex: 0 0 calc(33.33% - 10px);
  max-width: calc(33.33% - 10px);
  display: block;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #ece6d6;
}
.imageRow img, .imageGallery img, .ssImageRow img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.imageRow > a:hover img, .imageGallery > a:hover img, .ssImageRow > a:hover img { transform: scale(1.04); }

/* Video container */
.videoContainer, .ssVideo, .videoWrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 14px auto;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.videoContainer video, .ssVideo video { width: 100%; height: auto; display: block; }

/* Section dividers */
.divider, .ssDivider, hr {
  border: 0;
  border-top: 1px solid #d8d2c2;
  margin: 22px 0;
  height: 0;
}

/* Page title block */
.pageTitle, .ssPageTitle, h1.title {
  font-size: 26px;
  color: #1f3a2a;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2e7d3e;
}

/* Two-column SimpleSite layout */
.twoColumn, .ssTwoCol {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
  padding: 18px 22px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Mobile collapse */
@media (max-width: 880px) {
  .twoColumn, .ssTwoCol { grid-template-columns: 1fr; }
  .imageRow > a, .imageGallery > a, .ssImageRow > a { flex: 0 0 calc(50% - 7px); max-width: calc(50% - 7px); }
}
@media (max-width: 480px) {
  .imageRow > a, .imageGallery > a, .ssImageRow > a { flex: 0 0 100%; max-width: 100%; }
}
