/* Fern & Wild — Bluebell portfolio gallery (clean) */
.fw-gallery {
  position: relative;
  width: 100%;
}

.fw-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}

.fw-gallery__item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0;
}

.fw-gallery__item > img,
.fw-gallery__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.fw-gallery__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.fw-gallery__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0);
  background: rgba(12, 91, 71, 0);
  transition: box-shadow 0.35s ease, background 0.35s ease;
  pointer-events: none;
}

.fw-gallery__item:not(.fw-gallery__item--cta):hover {
  z-index: 2;
  box-shadow: 0 14px 36px rgba(12, 91, 71, 0.28);
}

.fw-gallery__item:not(.fw-gallery__item--cta):hover .fw-gallery__link img {
  transform: scale(1.04);
  filter: brightness(1.06);
}

.fw-gallery__item:not(.fw-gallery__item--cta):hover .fw-gallery__link::after {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
}

/* CTA tiles (Shop Flowers / Gift Under) */
.fw-gallery__item--cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fw-gallery__item--cta > img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fw-gallery__cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8%;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.fw-gallery__cta-icon {
  display: block;
  width: 120px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 0 18px;
}

.fw-gallery__cta-title {
  margin: 0;
  font-family: 'Earthbound', serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #fff;
}

.fw-gallery__cta-sub {
  margin: 8px 0 22px;
  font-family: Quicksand, sans-serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff;
}

.fw-gallery__btn {
  display: inline-block;
  vertical-align: middle;
  padding: 9px 37px 12px;
  font-family: Quicksand, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 2em;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #fff;
  background-color: transparent;
  border: 1px solid #fff;
  border-radius: 0;
  box-sizing: border-box;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.fw-gallery__btn:hover {
  color: #155142;
  background-color: #fff;
}

/* —— Gallery lightbox (Magnific Popup) —— */
.fw-gallery-lightbox.mfp-bg {
  background: rgba(216, 227, 213, 0.88);
}

.fw-gallery-lightbox .mfp-figure::after {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.mfp-fade.mfp-bg {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
  opacity: 0.9;
}

.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
}

/* —— Subscribe (Bluebell desktop: no section pad; icon 9% top; form 12.5% bottom) —— */
.fw-subscribe {
  position: relative;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
}

.fw-subscribe__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.fw-subscribe__icon {
  display: block;
  width: 160px;
  max-width: 60%;
  height: auto;
  margin: 0 0 20px;
  padding-top: 9%;
  box-sizing: content-box;
}

.fw-subscribe__title {
  margin: 0;
  font-family: 'Earthbound', serif;
  font-size: 42px;
  font-weight: 400; /* match intro/about — Quicksand 300 not self-hosted */
  line-height: 1.146;
  letter-spacing: 0.02em;
  color: #155142;
}

.fw-subscribe__text {
  margin: 12px auto 0;
  max-width: 720px;
  padding: 0;
  font-family: Quicksand, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: #155142;
  box-sizing: border-box;
}

.fw-subscribe__text:first-of-type {
  margin-top: 15px;
}

.fw-subscribe__text:last-of-type {
  margin-bottom: 30px;
}

.fw-subscribe__text a {
  color: #155142;
  text-decoration: none;
}

.fw-subscribe__form {
  width: 100%;
  max-width: 100%;
  padding: 0 0 12.5%;
  box-sizing: border-box;
}

.fw-subscribe__fields {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  box-sizing: border-box;
}

.fw-subscribe__fields input[type="text"],
.fw-subscribe__fields input[type="email"] {
  flex: 1 1 0;
  min-width: 0;
  height: 52px;
  margin: 0;
  padding: 15px 0 0;
  border: none;
  border-bottom: 1px solid #155142;
  background: transparent;
  font-family: Quicksand, sans-serif;
  font-size: 18px;
  font-style: italic;
  color: #155142;
  box-sizing: border-box;
}

.fw-subscribe__fields input[type="text"]:focus,
.fw-subscribe__fields input[type="email"]:focus {
  color: #155142;
  outline: none;
}

.fw-subscribe__fields input[type="text"]::placeholder,
.fw-subscribe__fields input[type="email"]::placeholder {
  color: #155142;
  opacity: 1;
}

.fw-subscribe__fields button[type="submit"] {
  flex: 0 0 auto;
  max-height: 52px;
  padding: 9px 37px 12px;
  margin: 0;
  border: 1px solid transparent;
  background-color: #d8e3d5;
  color: #155142;
  font-family: Quicksand, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 2em;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease-in-out;
}

.fw-subscribe__fields button[type="submit"]:hover {
  background-color: #d0dfcf;
}

@media only screen and (max-width: 1024px) {
  .fw-gallery__cta-title {
    font-size: 24px;
  }

  .fw-gallery__cta-sub {
    margin: 4px 0 14px;
    font-size: 16px;
  }

  .fw-gallery__btn {
    padding: 6px 22px 8px;
    font-size: 14px;
  }

  .fw-subscribe__title {
    font-size: 36px;
  }

  .fw-subscribe__text {
    max-width: 720px;
    padding: 0;
  }

  .fw-subscribe__form {
    padding: 0 0 12.5%;
  }
}

@media only screen and (max-width: 767px) {
  .fw-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA tiles: own row + content height so they aren’t tall empty squares */
  .fw-gallery__item--cta {
    grid-column: 1 / -1;
    aspect-ratio: auto;
  }

  .fw-gallery__cta {
    height: auto;
    padding: 20px 10%;
  }

  .fw-gallery__cta-icon {
    width: 80px;
    margin: 0 0 8px;
  }

  .fw-gallery__cta-title {
    font-size: 24px;
  }

  .fw-gallery__cta-sub {
    margin: 2px 0 12px;
    font-size: 15px;
  }

  .fw-gallery__btn {
    padding: 5px 18px 6px;
    font-size: 13px;
  }

  /* Bluebell only applies the large section padding on mobile */
  .fw-subscribe {
    padding: 21% 5% 15%;
  }

  .fw-subscribe__inner {
    align-items: stretch;
    max-width: none;
    padding: 0;
    box-sizing: border-box;
  }

  .fw-subscribe__icon {
    padding-top: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .fw-subscribe__title {
    font-size: 28px;
    padding: 0;
  }

  .fw-subscribe__text {
    margin: 12px 0 0;
    max-width: none;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .fw-subscribe__text:last-of-type {
    margin-bottom: 24px;
  }

  .fw-subscribe__form {
    padding: 0;
  }

  .fw-subscribe__fields {
    flex-wrap: wrap;
    max-width: 100%;
    gap: 12px;
  }

  .fw-subscribe__fields input[type="text"],
  .fw-subscribe__fields input[type="email"] {
    flex: 1 1 calc(50% - 6px);
  }

  .fw-subscribe__fields button[type="submit"] {
    width: 100%;
  }
}

@media only screen and (max-width: 480px) {
  .fw-gallery__grid {
    grid-template-columns: 1fr;
  }

  .fw-gallery__item--cta {
    grid-column: auto;
  }

  .fw-gallery__cta {
    padding: 18px 12%;
  }

  .fw-gallery__cta-icon {
    width: 72px;
    margin: 0 0 8px;
  }

  .fw-gallery__cta-title {
    font-size: 22px;
  }

  .fw-subscribe__fields input[type="text"],
  .fw-subscribe__fields input[type="email"] {
    flex: 1 1 100%;
  }
}
