/**
 * Airbnb-inspired listing & blog styles.
 * Loaded on single feriebolig + blog archives.
 */

:root {
  --fb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fb-text: #222222;
  --fb-muted: #717171;
  --fb-border: #dddddd;
  --fb-bg: #ffffff;
  --fb-radius: 12px;
  --fb-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  --fb-gap: 24px;
  --fb-sticky-top: 24px;
}

/* ------------------------------------------------------------------ */
/* Single feriebolig listing                                          */
/* ------------------------------------------------------------------ */

.single-feriebolig .fb-listing {
  font-family: var(--fb-font);
  color: var(--fb-text);
  padding: 1.5rem 0 4rem;
}

.home .fb-listing,
.single-feriebolig .fb-listing {
  font-family: var(--fb-font);
  color: var(--fb-text);
}

.home .fb-listing {
  padding: 1.5rem 0 3rem;
}

.single-feriebolig .fb-listing {
  padding: 1.5rem 0 4rem;
}

.single-feriebolig .fb-listing__inner,
.home .fb-listing__inner {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.fb-listing__title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.fb-lead-banner {
  background: #f7f7f7;
  border-radius: var(--fb-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  text-align: center;
}

.fb-lead-banner p {
  margin: 0.35rem 0;
}

.fb-lead-tagline {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fb-text);
}

.fb-lead-address {
  font-size: 1rem;
  color: var(--fb-muted);
}

.fb-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  color: var(--fb-muted);
  font-size: 0.95rem;
}

.fb-meta-row li:not(:last-child)::after {
  content: "·";
  margin-left: 0.5rem;
  color: var(--fb-muted);
}

.fb-meta-row__location {
  flex-basis: 100%;
  text-decoration: underline;
  cursor: default;
}

/* 5-image Airbnb grid */
.fb-gallery {
  position: relative;
  display: grid;
  gap: 8px;
  border-radius: var(--fb-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  min-height: 280px;
}

.fb-gallery--1 {
  grid-template-columns: 1fr;
  min-height: 360px;
}

.fb-gallery--2 {
  grid-template-columns: 1fr 1fr;
}

.fb-gallery--3,
.fb-gallery--4,
.fb-gallery--5 {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: 400px;
}

.fb-gallery__item {
  position: relative;
  padding: 0;
  border: none;
  background: #ebebeb;
  cursor: pointer;
  overflow: hidden;
}

/* Gallery — center hero video + side images */
.fb-gallery--center {
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: 420px;
}

.fb-gallery--center.fb-gallery--video-only {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  min-height: 360px;
}

.fb-gallery--center .fb-gallery__item--hero {
  grid-column: 2;
  grid-row: 1 / 3;
}

.fb-gallery--center.fb-gallery--video-only .fb-gallery__item--hero {
  grid-column: 1;
  grid-row: 1;
}

.fb-gallery--center .fb-gallery__item--pos-l1 {
  grid-column: 1;
  grid-row: 1;
}

.fb-gallery--center .fb-gallery__item--pos-l2 {
  grid-column: 1;
  grid-row: 2;
}

.fb-gallery--center .fb-gallery__item--pos-r1 {
  grid-column: 3;
  grid-row: 1;
}

.fb-gallery--center .fb-gallery__item--pos-r2 {
  grid-column: 3;
  grid-row: 2;
}

.fb-gallery--center .fb-gallery__item--pos-center {
  grid-column: 2;
  grid-row: 1 / 3;
}

.fb-gallery__item--video {
  cursor: default;
  padding: 0;
  background: #000;
}

.fb-gallery__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Legacy left-hero modifiers (unused but kept for expanded fallback) */
.fb-gallery__item--hero {
  grid-row: 1 / 3;
  grid-column: 1;
}

.fb-gallery--3 .fb-gallery__item:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / 3;
}

.fb-gallery--4 .fb-gallery__item:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.fb-gallery--4 .fb-gallery__item:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.fb-gallery--4 .fb-gallery__item:nth-child(4) {
  grid-column: 2 / 4;
  grid-row: 2;
}

.fb-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.fb-gallery__item:hover img {
  transform: scale(1.02);
}

.fb-gallery__item--video:hover .fb-gallery__video {
  transform: none;
}

/* Two-column layout */
.fb-listing__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: var(--fb-gap);
  align-items: start;
}

.fb-section-title {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.fb-listing__content {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fb-text);
}

.fb-listing__content > *:first-child {
  margin-top: 0;
}

.fb-listing__excerpt {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--fb-border);
  color: var(--fb-muted);
}

/* Highlights */
.fb-highlights {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--fb-border);
}

.fb-highlights__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.fb-highlights__item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.fb-highlights__icon {
  font-size: 1.35rem;
  line-height: 1.2;
}

.fb-highlights__text {
  font-size: 1rem;
  line-height: 1.5;
}

/* Sticky booking box */
.fb-booking-box {
  position: sticky;
  top: var(--fb-sticky-top);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius);
  padding: 1.5rem;
  background: var(--fb-bg);
  box-shadow: var(--fb-shadow);
}

.fb-booking-box__price {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.fb-booking-box__price strong {
  font-weight: 600;
}

.fb-booking-box__form .mphb-booking-form,
.fb-booking-box__form .mphb_sc_booking_form-wrapper {
  margin: 0;
}

.fb-booking-box__form label {
  font-size: 0.875rem;
  font-weight: 600;
}

.fb-booking-box__form input,
.fb-booking-box__form select {
  border-radius: 8px;
  border: 1px solid var(--fb-border);
  width: 100%;
}

.fb-booking-box__form .button,
.fb-booking-box__form .mphb-button {
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(to right, #e61e4d 0%, #e31c5f 50%, #d70466 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1rem;
}

.fb-booking-box__cta {
  display: block;
  text-align: center;
  border-radius: 8px;
  background: linear-gradient(to right, #e61e4d 0%, #e31c5f 50%, #d70466 100%);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1rem;
}

.fb-booking-box__note {
  color: var(--fb-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

/* Gutenberg highlights pattern inside listing */
.fb-highlights-grid p {
  margin: 0;
  font-size: 1rem;
}

/* ------------------------------------------------------------------ */
/* Reviews section (Airbnb-style, embedded in listing)                */
/* ------------------------------------------------------------------ */

.fb-reviews-section {
  border-top: 1px solid var(--fb-border);
  padding-top: 2rem;
  margin-top: 2.5rem;
}

.fb-reviews-section__header {
  margin-bottom: 1.5rem;
}

.fb-reviews-summary {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.fb-reviews-summary__star {
  font-size: 1.1em;
  line-height: 1;
}

.fb-reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, calc(33.333% - 1rem));
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.fb-review-card {
  scroll-snap-align: start;
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius);
  padding: 1.25rem;
  background: var(--fb-bg);
  min-height: 210px;
}

.fb-review-card__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.fb-review-card__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #484848;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.05rem;
}

.fb-review-card__meta {
  min-width: 0;
}

.fb-review-card__guest {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.fb-review-card__date {
  display: block;
  font-size: 0.85rem;
  color: var(--fb-muted);
  margin-top: 0.1rem;
}

.fb-review-stars {
  display: inline-flex;
  gap: 0.1rem;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  line-height: 1;
}

.fb-review-stars__star {
  color: #dddddd;
}

.fb-review-stars__star.is-filled {
  color: var(--fb-text);
}

.fb-review-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fb-text);
}

.fb-reviews-section__footer {
  margin-top: 1.35rem;
}

.fb-reviews-show-all {
  display: inline-block;
  border: 1px solid var(--fb-text);
  border-radius: 8px;
  padding: 0.8rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--fb-text);
  background: transparent;
  transition: background 0.15s ease;
}

.fb-reviews-show-all:hover {
  background: #f7f7f7;
}

/* ------------------------------------------------------------------ */
/* Location map (Airbnb-style)                                        */
/* ------------------------------------------------------------------ */

.fb-map-section {
  border-top: 1px solid var(--fb-border);
  padding-top: 2rem;
  margin-top: 2.5rem;
}

.fb-map-section__address {
  margin: 0.35rem 0 1.25rem;
  color: var(--fb-muted);
  font-size: 1rem;
}

.fb-map-section__link {
  display: inline-block;
  text-decoration: none;
  color: var(--fb-accent);
  border-radius: 0;
  margin-top: 0.75rem;
  font-weight: 600;
}

.fb-map-section__link:hover .fb-map-section__map {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.fb-map-section__map {
  position: relative;
  overflow: hidden;
  border-radius: var(--fb-radius);
  border: 1px solid var(--fb-border);
  background: #e9e9e9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

.fb-map-section__map--placeholder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.04)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(255, 255, 255, 0.35) 39px,
      rgba(255, 255, 255, 0.35) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(255, 255, 255, 0.35) 39px,
      rgba(255, 255, 255, 0.35) 40px
    ),
    linear-gradient(135deg, #dfe4ea 0%, #cfd6de 45%, #bcc6d0 100%);
}

.fb-map-section__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-map-section__iframe {
  display: block;
  width: 100%;
  height: 420px;
  min-height: 320px;
  border: 0;
}

.fb-map-section__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  color: #ff385c;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
  pointer-events: none;
  line-height: 0;
}

.fb-map-section__map--static .fb-map-section__pin {
  display: none;
}

.fb-map-section__map--embed .fb-map-section__pin {
  display: none;
}

.fb-map-section__map--embed {
  aspect-ratio: auto;
  min-height: 320px;
}

@media (max-width: 768px) {
  .fb-map-section__iframe {
    height: 300px;
    min-height: 260px;
  }

  .fb-map-section__map--embed {
    min-height: 260px;
  }
}

/* ------------------------------------------------------------------ */
/* Articles section at page bottom (Airbnb-style cards)               */
/* ------------------------------------------------------------------ */

.fb-blog-section {
  border-top: 1px solid var(--fb-border);
  padding: 3rem 0 4rem;
  margin-top: 0;
  background: #fafafa;
}

.fb-blog-section .fb-listing__inner {
  max-width: 1120px;
}

.fb-section-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.fb-blog-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.fb-blog-section__lead {
  margin: 0.35rem 0 0;
  color: var(--fb-muted);
  font-size: 1rem;
}

.fb-blog-section__link {
  color: var(--fb-text);
  font-weight: 600;
  text-decoration: underline;
  font-size: 0.95rem;
  white-space: nowrap;
}

.fb-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--fb-gap);
}

.fb-blog-card {
  background: var(--fb-bg);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fb-blog-card:hover {
  box-shadow: var(--fb-shadow);
  transform: translateY(-2px);
}

.fb-blog-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ebebeb;
}

.fb-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fb-blog-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dce8ef, #f0f4f7);
}

.fb-blog-card__body {
  padding: 1rem 1.1rem 1.25rem;
}

.fb-blog-card__date {
  display: block;
  font-size: 0.8rem;
  color: var(--fb-muted);
  margin-bottom: 0.35rem;
}

.fb-blog-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.fb-blog-card__title a {
  color: var(--fb-text);
  text-decoration: none;
}

.fb-blog-card__title a:hover {
  text-decoration: underline;
}

.fb-blog-card__excerpt {
  margin: 0;
  color: var(--fb-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Reviews archive (/blog/) */
.fb-reviews-archive {
  font-family: var(--fb-font);
  color: var(--fb-text);
  padding: 2rem 0 4rem;
}

.fb-reviews-archive__header {
  margin-bottom: 2rem;
}

.fb-reviews-archive__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.fb-reviews-archive__summary {
  margin: 0;
  color: var(--fb-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.fb-reviews-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--fb-gap);
}

.fb-review-card--archive {
  min-height: auto;
}

.fb-reviews-archive__empty {
  color: var(--fb-muted);
}

.fb-reviews-archive .navigation.pagination {
  margin-top: 2.5rem;
}

/* ------------------------------------------------------------------ */
/* Blog masonry archive (Blocksy fallback)                              */
/* ------------------------------------------------------------------ */

.ba-blog-masonry .entries,
.ba-blog-masonry [data-archive="default"] .entries {
  column-count: 3;
  column-gap: var(--fb-gap);
}

.ba-blog-masonry article.entry-card,
.ba-blog-masonry .entry-card {
  break-inside: avoid;
  margin-bottom: var(--fb-gap);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius);
  overflow: hidden;
  background: var(--fb-bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.ba-blog-masonry .entry-card .entry-title,
.ba-blog-masonry article .entry-title {
  font-family: var(--fb-font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ba-blog-masonry .entry-card .entry-meta,
.ba-blog-masonry article .entry-meta {
  color: var(--fb-muted);
  font-size: 0.875rem;
}

.ba-blog-masonry .entry-card .ct-image-container,
.ba-blog-masonry article .ct-image-container {
  border-radius: var(--fb-radius) var(--fb-radius) 0 0;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 960px) {
  .fb-listing__layout {
    grid-template-columns: 1fr;
  }

  .fb-booking-box {
    position: static;
    order: -1;
    margin-bottom: 1.5rem;
  }

  .fb-gallery--center,
  .fb-gallery--3,
  .fb-gallery--4,
  .fb-gallery--5 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 120px 120px;
    min-height: auto;
  }

  .fb-gallery--center .fb-gallery__item--hero,
  .fb-gallery--center .fb-gallery__item--pos-center {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .fb-gallery--center .fb-gallery__item--pos-l1 {
    grid-column: 1;
    grid-row: 2;
  }

  .fb-gallery--center .fb-gallery__item--pos-l2 {
    grid-column: 1;
    grid-row: 3;
  }

  .fb-gallery--center .fb-gallery__item--pos-r1 {
    grid-column: 2;
    grid-row: 2;
  }

  .fb-gallery--center .fb-gallery__item--pos-r2 {
    grid-column: 2;
    grid-row: 3;
  }

  .fb-gallery__item--hero {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .fb-gallery--3 .fb-gallery__item:nth-child(2),
  .fb-gallery--4 .fb-gallery__item:nth-child(2),
  .fb-gallery--4 .fb-gallery__item:nth-child(3),
  .fb-gallery--4 .fb-gallery__item:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .ba-blog-masonry .entries,
  .ba-blog-masonry [data-archive="default"] .entries {
    column-count: 2;
  }

  .fb-reviews-track {
    grid-auto-columns: minmax(260px, 75vw);
  }

  .fb-reviews-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fb-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .fb-gallery--center,
  .fb-gallery--2,
  .fb-gallery--3,
  .fb-gallery--4,
  .fb-gallery--5 {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(auto, 200px);
  }

  .fb-gallery--center .fb-gallery__item--hero,
  .fb-gallery--center .fb-gallery__item--pos-center,
  .fb-gallery__item--hero {
    grid-column: 1;
    grid-row: 1;
    min-height: 240px;
  }

  .fb-gallery--center .fb-gallery__item--pos-l1,
  .fb-gallery--center .fb-gallery__item--pos-l2,
  .fb-gallery--center .fb-gallery__item--pos-r1,
  .fb-gallery--center .fb-gallery__item--pos-r2 {
    grid-column: 1;
    grid-row: auto;
  }

  .ba-blog-masonry .entries,
  .ba-blog-masonry [data-archive="default"] .entries {
    column-count: 1;
  }

  .fb-reviews-track {
    grid-auto-columns: minmax(85vw, 1fr);
  }

  .fb-reviews-archive__grid {
    grid-template-columns: 1fr;
  }

  .fb-blog-grid {
    grid-template-columns: 1fr;
  }

  .fb-blog-section__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------------ */
/* Photo carousel (remaining media library images)                    */
/* ------------------------------------------------------------------ */

.fb-photo-carousel {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--fb-border);
}

.fb-photo-carousel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}

.fb-photo-carousel__count {
  margin: 0;
  color: var(--fb-muted);
  font-size: 0.95rem;
}

.fb-photo-carousel__viewport {
  position: relative;
}

.fb-photo-carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem 0 0.5rem;
}

.fb-photo-carousel__track::-webkit-scrollbar {
  display: none;
}

.fb-photo-carousel__slide {
  flex: 0 0 min(78vw, 420px);
  scroll-snap-align: start;
  margin: 0;
}

.fb-photo-carousel__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--fb-radius);
  overflow: hidden;
  background: #ebebeb;
  cursor: zoom-in;
  box-shadow: var(--fb-shadow);
}

.fb-photo-carousel__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.fb-photo-carousel__open:hover .fb-photo-carousel__image {
  transform: scale(1.03);
}

.fb-photo-carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--fb-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--fb-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--fb-shadow);
}

.fb-photo-carousel__nav--prev {
  left: -0.75rem;
}

.fb-photo-carousel__nav--next {
  right: -0.75rem;
}

.fb-photo-lightbox {
  width: min(96vw, 1100px);
  max-width: 96vw;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--fb-radius);
  background: #000;
  overflow: visible;
}

.fb-photo-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.fb-photo-lightbox__image {
  display: block;
  width: 100%;
  max-height: 92vh;
  object-fit: contain;
}

.fb-photo-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.fb-photo-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.fb-photo-lightbox__nav--prev {
  left: 0.75rem;
}

.fb-photo-lightbox__nav--next {
  right: 0.75rem;
}

@media (min-width: 768px) {
  .fb-photo-carousel__slide {
    flex-basis: min(42vw, 480px);
  }

  .fb-photo-carousel__image {
    height: 320px;
  }
}

@media (max-width: 767px) {
  .fb-photo-carousel__nav {
    display: none;
  }
}
