body.page-template-template-faniposti,
body.page-template-template-laheta-faniposti {
  background: linear-gradient(180deg, #e5f2ff 0%, #f6fbff 52%, #ffffff 100%);
}

html.lightbox-open,
body.lightbox-open {
  overflow: hidden !important;
}

body.page-template-template-faniposti .bg-wrapper,
body.page-template-template-laheta-faniposti .bg-wrapper {
  background:
    radial-gradient(circle at 14% 18%, rgba(152, 214, 255, 0.16), transparent 24%),
    radial-gradient(circle at 84% 22%, rgba(182, 228, 255, 0.14), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #f4fbff 38%, #dcefff 100%) !important;
}

body.page-template-template-faniposti .site-content,
body.page-template-template-laheta-faniposti .site-content {
  background: transparent !important;
}

body.page-template-template-faniposti main.page-main-full-width.page-faniposti,
body.page-template-template-laheta-faniposti main.page-main-full-width.page-faniposti,
.page-faniposti {
  background:
    radial-gradient(circle at 14% 18%, rgba(152, 214, 255, 0.16), transparent 24%),
    radial-gradient(circle at 84% 22%, rgba(182, 228, 255, 0.14), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 251, 255, 0.84) 38%, rgba(220, 239, 255, 0.78) 100%) !important;
  min-height: 100vh;
}

.faniposti-hero,
.faniposti-section__inner {
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
}

.faniposti-hero {
  padding: clamp(52px, 7vw, 92px) 0 clamp(34px, 5vw, 56px);
}

.faniposti-hero__inner {
  display: block;
}

.faniposti-hero__content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.faniposti-kicker,
.faniposti-section__eyebrow {
  margin: 0 0 0.7rem;
  color: #3f78b7;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faniposti-hero h1,
.faniposti-section__intro h2 {
  margin: 0 0 0.9rem;
  color: #18324d;
  line-height: 1.08;
}

.faniposti-hero h1 {
  font-size: clamp(2.35rem, 1.85rem + 2vw, 4rem);
}

.faniposti-lead,
.faniposti-section__intro p,
.faniposti-send-note p {
  color: #334a5f;
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.08rem);
  line-height: 1.8;
}

.faniposti-lead {
  max-width: 760px;
  margin-inline: auto;
}

.faniposti-section {
  padding: 0 0 clamp(48px, 7vw, 84px);
}

.faniposti-section__inner {
  display: grid;
  gap: 1.3rem;
}

.faniposti-section__intro {
  max-width: 740px;
}

.faniposti-form-wrap {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(214, 166, 102, 0.2);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(28, 39, 51, 0.08);
  padding: clamp(18px, 3vw, 30px);
}

.faniposti-gallery-wrap {
  padding-top: 0.2rem;
}

.faniposti-cta-card,
.faniposti-send-note {
  max-width: 760px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(214, 166, 102, 0.2);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(28, 39, 51, 0.08);
  padding: 1.25rem 1.4rem;
}

.faniposti-cta-card {
  margin-top: 0.2rem;
  margin-inline: auto;
  text-align: center;
}

.faniposti-cta-card h2 {
  margin: 0 0 0.6rem;
  color: #18324d;
  font-size: clamp(1.35rem, 1.22rem + 0.42vw, 1.72rem);
}

.faniposti-cta-card p,
.faniposti-send-note p {
  margin: 0;
}

.faniposti-cta-card .btn {
  margin-top: 1rem;
}

.fanpost-form,
.page-faniposti .wpcf7 form {
  display: grid;
  gap: 1rem;
}

.fanpost-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.page-faniposti .wpcf7 label {
  display: block;
  margin: 0;
  color: #17324f;
  font-weight: 800;
}

.page-faniposti .wpcf7 label .optional {
  color: #6b7f92;
  font-size: 0.9rem;
  font-weight: 700;
}

.page-faniposti .wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.page-faniposti .wpcf7 textarea,
.page-faniposti .wpcf7 select {
  width: 100%;
  margin-top: 0.38rem;
  border: 1px solid rgba(33, 58, 98, 0.18);
  border-radius: 14px;
  box-sizing: border-box;
  color: #17324f;
  font: inherit;
  padding: 0.8rem 0.9rem;
  text-align: left;
  background: #fffdf9;
}

.page-faniposti .wpcf7 textarea {
  min-height: 124px;
  resize: vertical;
}

.page-faniposti .wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):focus,
.page-faniposti .wpcf7 textarea:focus,
.page-faniposti .wpcf7 select:focus {
  border-color: rgba(214, 126, 58, 0.56);
  box-shadow: 0 0 0 4px rgba(255, 193, 120, 0.14);
  outline: none;
}

.page-faniposti .wpcf7 .wpcf7-list-item {
  margin: 0;
}

.page-faniposti .wpcf7 .wpcf7-list-item label {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  gap: 0.68rem;
  align-items: start;
  color: #334a5f;
  font-weight: 700;
  line-height: 1.5;
}

.page-faniposti .wpcf7 input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.16rem;
}

.page-faniposti .wpcf7 input[type="submit"] {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.page-faniposti .wpcf7 p {
  margin: 0;
}

.page-faniposti .wpcf7 .wpcf7-response-output {
  margin: 0;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-weight: 700;
}

.page-faniposti .wpcf7 .cf-turnstile {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.2rem;
}

.page-faniposti .wpcf7 .cf-turnstile > div {
  margin: 0 auto;
}

.faniposti-message {
  border: 1px solid rgba(55, 87, 119, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: #334a5f;
  padding: 1rem 1.1rem;
}

.faniposti-message--warning {
  background: #fff6df;
  border-color: rgba(214, 126, 58, 0.28);
}

@media (max-width: 900px) {
  .fanpost-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .faniposti-hero {
    padding-top: 42px;
  }
}

#lightbox.bombo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: clamp(18px, 3vw, 32px);
  background: rgba(15, 29, 49, 0.78);
  backdrop-filter: blur(8px);
  overflow: auto;
}

#lightbox.bombo-lightbox.is-open {
  display: flex;
}

.bombo-lightbox__content {
  display: grid;
  gap: 1rem;
  width: min(100%, 1040px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.25rem 0 0.5rem;
  box-sizing: border-box;
}

#lightbox.bombo-lightbox img#lightbox-img {
  display: block;
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: auto;
  max-width: min(92vw, 1040px) !important;
  max-height: min(68vh, 760px) !important;
  margin: 0 auto !important;
  border-radius: 24px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

.bombo-lightbox__caption {
  display: grid;
  gap: 0.9rem;
  width: min(100%, 540px);
  margin: 0 auto;
  padding: 1rem 0.5rem;
  box-sizing: border-box;
  border: 1px solid rgba(214, 166, 102, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 248, 255, 0.96) 100%);
  box-shadow: 0 18px 44px rgba(18, 40, 66, 0.18);
  color: #29425b;
}

.bombo-lightbox__meta,
.bombo-lightbox__message,
.bombo-lightbox__comment p {
  margin: 0;
  color: #29425b !important;
  line-height: 1;
  text-align: center;
  max-width: 100% !important;
}

.bombo-lightbox__info {
  display: grid;
  gap: 0.45rem;
  text-align: center;
}

.bombo-lightbox__meta {
  color: #607388;
  font-weight: 700;
}

.bombo-lightbox__reply {
  display: flex;
  justify-content: center;
  padding-top: 0rem;
}

.bombo-lightbox__comment {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  max-width: 430px;
  margin-left: -40px;
}

.bombo-lightbox__comment img.bombo-lightbox__comment-icon {
  display: block;
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 52px;
  height: 52px;
  min-width: 52px;
  max-width: 52px !important;
  max-height: 52px !important;
  margin: 0 !important;
  object-fit: cover;
border-radius: 999px !important;
    box-shadow: none !important;
}

.bombo-lightbox__comment p {
  flex: 0 1 auto;
  text-align: left !important;
  color: #22405c !important;
  font-weight: 700;
}

#lightbox.bombo-lightbox .close-btn,
#lightbox.bombo-lightbox .prev-btn,
#lightbox.bombo-lightbox .next-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #18324d;
  box-shadow: 0 12px 28px rgba(15, 29, 49, 0.22);
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
}

#lightbox.bombo-lightbox .close-btn {
  top: 20px;
  right: 20px;
}

#lightbox.bombo-lightbox .prev-btn {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#lightbox.bombo-lightbox .next-btn {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 820px) {
  #lightbox.bombo-lightbox {
    padding: 18px 14px 22px;
  }

  #lightbox.bombo-lightbox .prev-btn,
  #lightbox.bombo-lightbox .next-btn {
    bottom: 20px;
    top: auto;
    transform: none;
  }

  #lightbox.bombo-lightbox .prev-btn {
    left: 18px;
  }

  #lightbox.bombo-lightbox .next-btn {
    right: 18px;
  }

  .bombo-lightbox__caption {
    padding-inline: 1rem;
  }
}

@media (max-width: 520px) {
  .bombo-lightbox__caption {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    padding: 0.95rem 0.85rem;
  }

  .bombo-lightbox__comment {
    flex-direction: column;
    gap: 0rem;
    max-width: 100%;
    margin-left: 0;
  }

  .bombo-lightbox__comment img.bombo-lightbox__comment-icon {
    order: 2;
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px !important;
    max-height: 48px !important;
  }

  .bombo-lightbox__comment p {
    order: 1;
    text-align: center !important;
  }
}
