/* src/styles/gallery-photo-wall.css */
.lc-photo-wall {
  --photo-row-height: 280px;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.4em !important;
  margin: 0.2em !important;
  padding: 0 !important;
  list-style: none !important;
}

.lc-photo-wall::after {
  content: "" !important;
  display: block !important;
  flex-grow: 10 !important;
}

.lc-photo-wall li {
  --photo-grow: 0.8;
  --photo-basis: 32vh;
  flex: var(--photo-grow) 1 var(--photo-basis) !important;
  height: var(--photo-row-height) !important;
  margin: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.lc-photo-wall-item {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  cursor: zoom-in !important;
}

.lc-photo-wall-item img {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
}

/* Public layout tuning for current 12 images */
.lc-photo-wall li:nth-child(2),
.lc-photo-wall li:nth-child(7) {
  --photo-grow: 0.75;
  --photo-basis: 30vh;
}

.lc-photo-wall li:nth-child(4),
.lc-photo-wall li:nth-child(6),
.lc-photo-wall li:nth-child(8),
.lc-photo-wall li:nth-child(9),
.lc-photo-wall li:nth-child(12) {
  --photo-grow: 1.333;
  --photo-basis: 53.33vh;
}

@media (hover: hover) {
  .lc-photo-wall-item img {
    transition: transform 220ms ease !important;
  }

  .lc-photo-wall-item:hover img {
    transform: scale(1.025) !important;
  }
}

@media (max-aspect-ratio: 1 / 1) {
  .lc-photo-wall {
    --photo-row-height: 30vh;
  }

  .lc-photo-wall li {
    --photo-basis: 24vh;
  }

  .lc-photo-wall li:nth-child(2),
  .lc-photo-wall li:nth-child(7) {
    --photo-basis: 22.5vh;
  }

  .lc-photo-wall li:nth-child(4),
  .lc-photo-wall li:nth-child(6),
  .lc-photo-wall li:nth-child(8),
  .lc-photo-wall li:nth-child(9),
  .lc-photo-wall li:nth-child(12) {
    --photo-basis: 40vh;
  }
}

@media (max-height: 480px) {
  .lc-photo-wall {
    --photo-row-height: 80vh;
  }
}

@media (max-aspect-ratio: 1 / 1) and (max-width: 480px) {
  .lc-photo-wall {
    display: block !important;
  }

  .lc-photo-wall::after {
    display: none !important;
  }

  .lc-photo-wall li {
    width: 100% !important;
    height: auto !important;
    margin: 0 0 0.4em !important;
  }

  .lc-photo-wall-item,
  .lc-photo-wall-item img {
    height: auto !important;
  }

  .lc-photo-wall-item img {
    max-height: 75vh !important;
    object-fit: contain !important;
  }
}

/* Instatic editor-only stable layout */
.lc-instatic-editor .lc-photo-wall {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lc-instatic-editor .lc-photo-wall::after {
  display: none !important;
}

.lc-instatic-editor .lc-photo-wall li {
  width: auto !important;
  height: 260px !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  flex: none !important;
  contain: layout paint !important;
}

.lc-instatic-editor .lc-photo-wall-item {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  cursor: default !important;
  transform: none !important;
  transition: none !important;
  filter: none !important;
}

.lc-instatic-editor .lc-photo-wall-item img {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: none !important;
  transition: none !important;
  filter: none !important;
  backface-visibility: hidden !important;
}

/* Give the editor grid some variation without using the unstable public flex layout */
.lc-instatic-editor .lc-photo-wall li:nth-child(4n + 1) {
  height: 320px !important;
}

.lc-instatic-editor .lc-photo-wall li:nth-child(4n + 2) {
  height: 220px !important;
}

.lc-instatic-editor .lc-photo-wall li:nth-child(4n + 3) {
  height: 280px !important;
}

.lc-instatic-editor .lc-photo-wall-item:hover img {
  transform: none !important;
}

/* Lightbox */
.lc-photo-lightbox {
  display: none;
}

.lc-photo-lightbox.is-open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: grid !important;
  place-items: center !important;
  padding: 20px !important;
  background: rgba(3, 7, 18, 0.9) !important;
}

.lc-photo-lightbox-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
}

.lc-photo-lightbox-frame {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  place-items: center !important;
  max-width: min(100%, 1280px) !important;
  max-height: 86svh !important;
  margin: 0 !important;
}

.lc-photo-lightbox-image {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 82svh !important;
  object-fit: contain !important;
}

.lc-photo-lightbox-close,
.lc-photo-lightbox-prev,
.lc-photo-lightbox-next {
  position: fixed !important;
  z-index: 2 !important;
  display: grid !important;
  place-items: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(248, 250, 252, 0.32) !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.72) !important;
  color: #f8fafc !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  cursor: pointer !important;
  transform: none !important;
}

.lc-photo-lightbox-close {
  top: 18px !important;
  right: 18px !important;
  left: auto !important;
  bottom: auto !important;
}

.lc-photo-lightbox-prev {
  top: 50% !important;
  left: 18px !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

.lc-photo-lightbox-next {
  top: 50% !important;
  right: 18px !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

.lc-photo-lightbox-close::before,
.lc-photo-lightbox-prev::before,
.lc-photo-lightbox-next::before {
  position: relative !important;
  top: 2px !important;
  display: block !important;
  color: #f8fafc !important;
  font-size: 24px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
}

.lc-photo-lightbox-close::before {
  content: "×" !important;
}

.lc-photo-lightbox-prev::before {
  content: "‹" !important;
}

.lc-photo-lightbox-next::before {
  content: "›" !important;
}

@media (max-width: 480px) {
  .lc-photo-lightbox-prev {
    top: auto !important;
    bottom: 18px !important;
    transform: none !important;
  }

  .lc-photo-lightbox-next {
    top: auto !important;
    bottom: 18px !important;
    transform: none !important;
  }
}

/* src/styles/nav-fix.css */
.lc-nav-toggle {
  position: relative;
  font-size: 0;
  color: var(--lc-ink);
}

.lc-nav-toggle::before,
.lc-nav-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.lc-nav-toggle::before {
  top: calc(50% - 6px);
  box-shadow: 0 6px 0 currentColor;
}

.lc-nav-toggle::after {
  top: calc(50% + 6px);
}

.lc-nav-toggle[aria-expanded="true"]::before {
  top: 50%;
  box-shadow: none;
  transform: translateX(-50%) rotate(45deg);
}

.lc-nav-toggle[aria-expanded="true"]::after {
  top: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

/* src/styles/parent-gallery-categories.css */
.lc-travel-masonry {
  width: 100%;
  padding: 56px 16px;
}

.lc-travel-masonry * {
  box-sizing: border-box;
}

.lc-travel-masonry-inner {
  width: min(100%, 1100px);
  margin: 0 auto;
}

.lc-travel-masonry-header {
  margin-bottom: 24px;
}

.lc-travel-masonry-kicker {
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lc-travel-masonry-header h2 {
  max-width: 760px;
  margin: 0;
  color: #111827;
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
}

.lc-travel-masonry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.lc-travel-masonry-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  background: #111827;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.lc-travel-masonry-image {
  position: absolute;
  inset: 0;
  background-color: #111827;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.lc-travel-masonry-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.06),
    rgba(0, 0, 0, 0.72)
  );
  transition: background 0.4s ease;
}

.lc-travel-masonry-content h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 800;
}

.lc-travel-masonry-content p {
  max-width: 360px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.4;
}

.lc-travel-masonry-content span {
  width: fit-content;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.lc-travel-masonry-card:hover .lc-travel-masonry-image {
  transform: scale(1.08);
  filter: brightness(1.05) contrast(1.05);
}

.lc-travel-masonry-card:hover .lc-travel-masonry-content {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08),
    rgba(10, 80, 92, 0.8)
  );
}

@media (min-width: 640px) {
  .lc-travel-masonry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lc-travel-masonry-card-wide {
    grid-column: span 2;
  }

  .lc-travel-masonry-card-tall {
    min-height: 560px;
  }
}

@media (min-width: 1024px) {
  .lc-travel-masonry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lc-travel-masonry-card-wide {
    grid-column: span 2;
  }

  .lc-travel-masonry-card-tall {
    grid-row: span 2;
    min-height: 574px;
  }
}

@media (max-width: 520px) {
  .lc-travel-masonry {
    padding: 40px 12px;
  }

  .lc-travel-masonry-header h2 {
    font-size: 32px;
  }

  .lc-travel-masonry-card {
    min-height: 240px;
    border-radius: 12px;
  }

  .lc-travel-masonry-content {
    padding: 20px;
  }

  .lc-travel-masonry-content h3 {
    font-size: 24px;
  }
}

/* src/styles/reading-child-items-mobile.css */
@media (max-width: 639px) {
  .lc-book-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px 18px;
  }

  .lc-book-card > div {
    display: contents;
  }

  .lc-book-cover {
    grid-row: 1 / span 3;
    width: 112px;
  }

  .lc-book-card h3,
  .lc-book-card .lc-review-meta,
  .lc-book-card .lc-rating {
    grid-column: 2;
  }

  .lc-book-card .lc-muted-text,
  .lc-book-card .lc-tags {
    grid-column: 1 / -1;
  }

  .lc-book-card .lc-muted-text {
    margin-top: 4px;
  }
}

.lc-book-carousel-controls {
  display: none;
}

@media (max-width: 767px) {
  .lc-reading-notes-section .lc-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .lc-reading-notes-section .lc-grid::-webkit-scrollbar {
    display: none;
  }

  .lc-reading-notes-section .lc-book-card {
    flex: 0 0 min(86vw, 360px);
    scroll-snap-align: start;
  }

  .lc-book-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
  }

  .lc-book-carousel-prev,
  .lc-book-carousel-next {
    display: grid;
    place-items: center;
    width: 42px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--lc-line);
    border-radius: 8px;
    background: var(--lc-surface);
    color: var(--lc-ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }
}

/* src/styles/reading-parent-top-books.css */
.lc-top-books-grid,
.lc-reading-category-grid {
  display: grid;
  gap: 18px;
}

.lc-top-book-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius);
  background: var(--lc-surface);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
}

.lc-top-book-cover {
  width: 96px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.16);
}

.lc-top-book-body {
  display: grid;
  gap: 10px;
}

.lc-top-book-body h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.lc-top-book-body .lc-tag {
  width: fit-content;
  margin-top: 0;
}

.lc-reading-category-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--lc-line);
  border-radius: var(--lc-radius);
  background: var(--lc-surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
}

.lc-reading-category-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.lc-reading-category-card p {
  margin: 0;
  color: var(--lc-muted);
}

@media (min-width: 640px) {
  .lc-top-books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lc-reading-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 880px) {
  .lc-top-books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lc-reading-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (hover: hover) {
  .lc-top-book-card,
  .lc-reading-category-card {
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .lc-top-book-card:hover,
  .lc-reading-category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--lc-shadow);
  }
}

/* src/styles/work-badges.css */
.lc-work-badges {
  width: 100%;
  padding: 40px 16px;
}

.lc-work-badges * {
  box-sizing: border-box;
}

.lc-work-badges-inner {
  width: min(100%, 900px);
  margin: 0 auto;
}

.lc-work-badges-header {
  margin-bottom: 18px;
}

.lc-work-badges-kicker {
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lc-work-badges-header h2 {
  margin: 0;
  color: #111827;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 800;
}

.lc-work-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lc-work-badge {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 10px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.lc-work-badge-image {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.lc-work-badge-caption {
  max-width: 150px;
  color: #374151;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
}

@media (min-width: 720px) {
  .lc-work-badges {
    padding: 56px 24px;
  }

  .lc-work-badges-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .lc-work-badge-image {
    width: 120px;
    height: 120px;
  }
}

/* src/styles/work-daily-quote.css */
.lc-daily-quote-section {
  padding: 48px 16px;
  background: linear-gradient(to left, #d7dde8, #757f9a);
}

.lc-daily-quote {
  width: min(100%, 640px);
  margin: 0 auto;
  text-align: center;
}

.lc-daily-quote-list {
  display: grid;
}

.lc-daily-quote-item {
  display: none;
}

.lc-daily-quote-item.is-active {
  display: block;
}

.lc-daily-quote-text {
  position: relative;
  margin: 0;
  padding: 24px 44px;
  border: 0;
  border-radius: 8px;
  background: #efefef;
  color: #1a1a1a;
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
}

.lc-daily-quote-text::before,
.lc-daily-quote-text::after {
  position: absolute;
  color: #757f9a;
  font-size: 64px;
  line-height: 1;
  font-style: normal;
  pointer-events: none;
}

.lc-daily-quote-text::before {
  content: "\201C";
  top: 4px;
  left: 12px;
}

.lc-daily-quote-text::after {
  content: "\201D";
  right: 12px;
  bottom: -24px;
}

.lc-daily-quote-tail {
  width: 0;
  height: 0;
  margin-left: 48px;
  border-left: 0 solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #efefef;
}

.lc-daily-quote-source {
  margin: 8px 0 0 20px;
  color: #fff;
  text-align: left;
  font-weight: 650;
}

@media (min-width: 640px) {
  .lc-daily-quote-section {
    padding: 72px 24px;
  }

  .lc-daily-quote-text {
    padding: 28px 60px;
  }

  .lc-daily-quote-text::before,
  .lc-daily-quote-text::after {
    font-size: 80px;
  }

  .lc-daily-quote-tail {
    margin-left: 60px;
  }
}