body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}


/* Rounded corners */
.main-rounded {
  background: white;
  border-radius: 10px 10px 0 0; /* Rounded top corners */
  margin-top: -10px; /* Pulls it up so it overlaps the header */
  padding: 2rem;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1); /* Soft shadow between sections */
  position: relative;
  z-index: 1;
}

/* Quote with gallery */
.quote-gallery {
  margin-top: 2em;
  background: #f8f8f8;
  border-radius: 10px 10px 10px 10px;
}

.quote-gallery-inside {
  max-width: 80em;
  padding: 2rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch; /* make both columns same height */
  gap: 2rem;            /* optional spacing between quote and slideshow */
}

.quote-gallery-text {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* header at top */
  font-size: 1.2em
}

.quote-gallery-text h3 {
  font-size: 1.3rem;
  margin-bottom: 5%;
  font-weight: normal;
}

.quote-gallery-text p {
  flex: 1;                 /* take up remaining space */
  display: flex;
  align-items: center;     /* vertically center paragraph */
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.quote-slideshow {
  flex: 1 1 30%;
  position: relative;
  height: 350px;
  overflow: hidden;
}

.quote-slideshow-entry {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateX(100%);
  transition: transform 0.6s ease;
  z-index: 1;

  display: flex;
  justify-content: center;
  align-items: center;
}

.quote-slideshow-entry img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  background-color: #ffff;
}

/* The visible (top) image */
.quote-slideshow-entry.active {
  transform: translateX(0);
  z-index: 2;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
    .quote-gallery-text p {
        display: block;
        margin-bottom: 1rem;
    }
    .quote-gallery-text h3 {
        margin-bottom: 2rem;
    }
    .quote-gallery-inside {
        flex-direction: column;
        align-items: stretch;
    }

    .quote-gallery-text,
    .quote-slideshow {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .quote-slideshow {
        position: asbolute;
        min-height: 60vw;
    }
}

/* Producers section */
.content-block {
  max-width: 50em;
  padding: 2rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch; /* make both columns same height */
  gap: 2rem;            /* optional spacing between quote and slideshow */
}

.brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
  gap: 2rem;                             /* spacing between logos */
  max-width: 70em;                        /* optional container width */
  margin: 0 auto;                          /* center horizontally */
  padding: 2rem 1rem;                      /* inner spacing */
  align-items: center;                     /* vertically center logos */
}

.brand-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;     /* ensures logo scales without distortion */
  display: block;
  max-height: 80px;        /* optional, limit logo height */
}

@media (max-width: 768px) {
  .brands {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .brands {
    grid-template-columns: 1fr;
  }
}
