* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #151515;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,1), transparent 36%),
    linear-gradient(180deg, #f8f8f8 0%, #eeeeee 48%, #dddddd 100%);
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}


/* SHARED */

.museum-label {
  display: inline-block;
  margin: 0 0 22px;
  color: rgba(0, 0, 0, 0.44);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.back-link,
.void-back-link {
  display: inline-block;
  margin-bottom: 38px;
  color: rgba(0, 0, 0, 0.56);
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

.back-link:hover,
.void-back-link:hover {
  color: #000;
}


/* MAIN PAGE */

.main-hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  text-align: center;
}

.main-hero h1 {
  margin: 0;
  color: #111;
  font-size: clamp(60px, 12vw, 150px);
  line-height: 0.88;
  font-weight: 400;
  letter-spacing: -0.075em;
}

.hero-description {
  max-width: 720px;
  margin: 36px auto 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
}

.hero-description.small {
  max-width: 520px;
  margin-top: 18px;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.46);
}


/* DOOR MAP */

.door-map {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 130px;
}

.door-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-bottom: 46px;
}

.door-card {
  min-height: 520px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(0, 0, 0, 0.105);
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.door-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.door-image-wrap {
  min-height: 330px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.075);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(230,230,230,0.42));
  overflow: hidden;
}

.door-text {
  padding-top: 22px;
}

.door-text span {
  display: block;
  margin-bottom: 12px;
  color: rgba(0, 0, 0, 0.38);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.door-text h2 {
  margin: 0;
  color: #111;
  font-size: 34px;
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.door-text p {
  margin: 16px 0 0;
  color: rgba(0, 0, 0, 0.56);
  font-size: 15px;
  line-height: 1.55;
}

.final-door-section {
  display: grid;
  place-items: center;
  padding-top: 40px;
}

.final-door {
  width: min(370px, 100%);
}


/* SUB PAGES */

.sub-hero {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 56px;
}

.sub-hero h1 {
  margin: 0 0 32px;
  color: #111;
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.88;
  font-weight: 400;
  letter-spacing: -0.07em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0 0 20px;
  color: rgba(0, 0, 0, 0.64);
  font-size: 19px;
  line-height: 1.75;
}

.art-grid,
.placeholder-grid {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 120px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.art-piece,
.placeholder-card {
  margin: 0;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.105);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.art-piece img {
  width: 100%;
  display: block;
}

.art-piece figcaption {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.86);
  border-top: 1px solid rgba(0, 0, 0, 0.075);
}

.art-piece figcaption strong {
  display: block;
  margin-bottom: 6px;
  color: #111;
  font-size: 18px;
  font-weight: 400;
}

.art-piece figcaption span {
  color: rgba(0, 0, 0, 0.56);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.placeholder-card {
  min-height: 320px;
  padding: 34px;
}

.placeholder-card span {
  display: block;
  margin-bottom: 20px;
  color: rgba(0, 0, 0, 0.38);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.placeholder-card h2 {
  margin: 0;
  color: #111;
  font-size: 38px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.placeholder-card p {
  margin: 18px 0 0;
  color: rgba(0, 0, 0, 0.56);
  font-size: 15px;
  line-height: 1.6;
}


/* VOID PAGE */

.void-page {
  height: 100vh;
  overflow: hidden;
  background: #fbfbfb;
}

.void-back-link {
  position: fixed;
  top: 28px;
  left: 32px;
  z-index: 20;
}

.void-instructions {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  color: rgba(0, 0, 0, 0.42);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.void-room {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  perspective: 1400px;
  transform: translateY(-20px);
}

.void-camera {
  transform: scale(0.18);
  transform-origin: center center;
  transition: transform 0.18s ease-out;
}

.distant-window {
  width: min(520px, 82vw);
  text-align: center;
  position: relative;
}


.distant-window img {
  width: min(360px, 70vw);
  display: block;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
  border: none;
}

#windowCaption {
  opacity: 0;
  transform: translateY(14px);
  margin: 10px 0 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: clamp(18px, 2.3vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

.distant-window.caption-visible #windowCaption {
  opacity: 1;
  transform: translateY(0);
}

.window-side-text {
  position: absolute;
  right: calc(100% + 48px);
  top: 50%;
  left: -50%;
  width: 360px;
  margin: 0;
  opacity: 0;
  transform: translateY(-50%) translateY(14px);
  color: rgba(0, 0, 0, 0.62);
  font-size: clamp(15px, 1.45vw, 20px);
  line-height: 1.65;
  letter-spacing: -0.015em;
  text-align: center;
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
  pointer-events: none;
}

.window-side-text.visible {
  opacity: 1;
  transform: translateY(-50%) translateY(0);
}

.window-button {
  display: block;
  margin: 0 auto;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.window-button:focus,
.window-button:active,
.window-button:focus-visible {
  outline: none;
  border: 0;
  box-shadow: none;
}

.window-button img {
  width: min(360px, 70vw);
  display: block;
  margin: 0 auto;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
}

/* REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.door-image-wrap {
  min-height: 330px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.075);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(230,230,230,0.42));
  overflow: hidden;
}

.door-img {
  grid-area: 1 / 1;
  width: 78%;
  max-height: 300px;
  object-fit: contain;
  display: block;
  transition:
    opacity 0.35s ease,
    transform 0.45s ease;
}

.door-open {
  opacity: 0;
  transform: scale(1.015);
}

.animated-door.is-opening .door-closed {
  opacity: 0;
  transform: scale(0.985);
}

.animated-door.is-opening .door-open {
  opacity: 1;
  transform: scale(1.02);
}

.animated-door.is-opening {
  pointer-events: none;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .door-row,
  .art-grid,
  .placeholder-grid {
    grid-template-columns: 1fr;
  }

  .door-map,
  .art-grid,
  .placeholder-grid,
  .sub-hero {
    width: min(100% - 32px, 680px);
  }

  .door-card {
    min-height: auto;
  }

  .door-image-wrap {
    min-height: 260px;
  }

  .main-hero {
    min-height: 82vh;
  }
}

.archive-hero {
  padding-top: 92px;
}

.pinterest-board {
  columns: 2 150px;
}

.pin-modal-card {
  grid-template-columns: 1fr;
  overflow-y: auto;
}

.pin-modal-image {
  min-height: 320px;
}

.pin-modal-text {
  padding: 28px;
}

.insta-profile {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  gap: 28px;
  padding-top: 92px;
}

.insta-top-line {
  justify-content: center;
}

.insta-stats {
  justify-content: center;
}

.insta-feed {
  width: min(100% - 24px, 680px);
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.insta-modal-card {
  grid-template-columns: 1fr;
  overflow-y: auto;
}

.insta-modal-image {
  min-height: 360px;
}

.insta-modal-text {
  padding: 28px;
} 

/* =========================
  DIVIDER
   ========================= */

.archive-page {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.34), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(196, 159, 255, 0.34), transparent 34%),
    linear-gradient(180deg, #8d73b8 0%, #6f5797 42%, #4d3c73 100%);
  color: #fff;
}

.archive-back-link {
  position: fixed;
  top: 28px;
  left: 32px;
  z-index: 20;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

.archive-back-link:hover {
  color: #fff;
}

.archive-hero {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0 54px;
  text-align: center;
}

.archive-hero .museum-label {
  color: rgba(255, 255, 255, 0.64);
}

.archive-hero h1 {
  margin: 0;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.88;
  font-weight: 400;
  letter-spacing: -0.075em;
  color: #fff;
  text-shadow: 0 24px 70px rgba(35, 18, 70, 0.28);
}

.archive-hero p {
  max-width: 760px;
  margin: 34px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}


/* PINTEREST BOARD */

.pinterest-board {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 120px;
  columns: 5 180px;
  column-gap: 16px;
}

.pin-card {
  width: 100%;
  display: inline-block;
  margin: 0 0 16px;
  padding: 0;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 16px 38px rgba(35, 18, 70, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.16);
  cursor: pointer;
  break-inside: avoid;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.pin-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 24px 56px rgba(35, 18, 70, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.22);
  filter: brightness(1.04);
}

.pin-card img {
  width: 100%;
  display: block;
}


/* MODAL / OPENED PIN CARD */

.pin-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(40, 25, 70, 0.54);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.pin-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.pin-modal-card {
  position: relative;
  width: min(980px, 100%);
  max-height: min(720px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  background: rgba(255, 255, 255, 0.94);
  color: #21142f;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 34px 110px rgba(35, 18, 70, 0.42);
}

.pin-modal-image {
  min-height: 520px;
  background: #eee5ff;
  display: grid;
  place-items: center;
}

.pin-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pin-modal-text {
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pin-modal-text span {
  margin-bottom: 22px;
  color: rgba(75, 48, 110, 0.54);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pin-modal-text h2 {
  margin: 0;
  color: #2f1f46;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.pin-modal-text p {
  margin: 28px 0 0;
  color: rgba(47, 31, 70, 0.68);
  font-size: 18px;
  line-height: 1.75;
}

.pin-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(47, 31, 70, 0.58);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.pin-modal-close:hover {
  color: #2f1f46;
}

/* =========================
   WRITTEN THOUGHTS PAGE
   ========================= */

.thoughts-page {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 15% 0%, rgba(236, 233, 207, 0.95), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(172, 157, 125, 0.55), transparent 38%),
    linear-gradient(
      180deg,
      #dedbc5 0%,
      #c7c0a7 28%,
      #b4a78a 58%,
      #9f8f6f 100%
    );
  color: #2d271d;
}

.thoughts-back-link {
  position: fixed;
  top: 28px;
  left: 32px;
  z-index: 20;
  color: rgba(45, 39, 29, 0.62);
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

.thoughts-back-link:hover {
  color: #2d271d;
}

.thoughts-hero {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0 54px;
  text-align: center;
}

.thoughts-hero .museum-label {
  color: rgba(45, 39, 29, 0.48);
}

.thoughts-hero h1 {
  margin: 0;
  color: #2d271d;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.88;
  font-weight: 400;
  letter-spacing: -0.075em;
  text-shadow: 0 24px 70px rgba(92, 78, 53, 0.18);
}

.thoughts-hero p {
  max-width: 760px;
  margin: 34px auto 0;
  color: rgba(45, 39, 29, 0.68);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}


/* TEXT PINTEREST BOARD */

.thoughts-board {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 120px;
  columns: 4 230px;
  column-gap: 18px;
}

.thought-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  padding: 26px 26px 22px;
  break-inside: avoid;
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(236, 233, 207, 0.82),
      rgba(215, 207, 181, 0.76)
    );
  border: 1px solid rgba(88, 75, 50, 0.18);
  box-shadow:
    0 20px 58px rgba(77, 63, 38, 0.18),
    inset 0 1px 0 rgba(255, 255, 240, 0.46);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.thought-card:hover {
  transform: translateY(-5px);
  background:
    linear-gradient(
      180deg,
      rgba(241, 238, 215, 0.92),
      rgba(221, 213, 187, 0.86)
    );
  box-shadow:
    0 28px 76px rgba(77, 63, 38, 0.25),
    inset 0 1px 0 rgba(255, 255, 240, 0.58);
}

.thought-card p {
  margin: 0;
  color: rgba(45, 39, 29, 0.82);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -0.018em;
  white-space: pre-line;
}

.thought-card span {
  display: block;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(88, 75, 50, 0.14);
  color: rgba(77, 63, 38, 0.58);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =========================
   INSTAGRAM-LIKE VISIBLE SELF PAGE
   ========================= */

/* =========================
   INSTAGRAM-LIKE VISIBLE SELF PAGE
   light blue / pink palette
   ========================= */

.insta-page {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 16% 0%, rgba(198, 231, 241, 0.95), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(249, 172, 177, 0.62), transparent 38%),
    linear-gradient(
      180deg,
      #c8e7f1 0%,
      #fff1f3 38%,
      #ffcccc 72%,
      #f9acb1 100%
    );
  color: #253642;
}

.insta-back-link {
  position: fixed;
  top: 28px;
  left: 32px;
  z-index: 20;
  color: rgba(37, 54, 66, 0.62);
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

.insta-back-link:hover {
  color: #253642;
}


/* PROFILE HEADER */

.insta-profile {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 105px 0 54px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 54px;
  align-items: center;
  border-bottom: 1px solid rgba(37, 54, 66, 0.16);
}

.insta-avatar {
  width: 170px;
  height: 170px;
  border-radius: 999px;
  padding: 5px;
  background:
    linear-gradient(
      135deg,
      #96c4db,
      #fff1f3,
      #f9acb1
    );
  box-shadow:
    0 18px 50px rgba(86, 129, 148, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.5);
}

.insta-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 999px;
  border: 4px solid #fff1f3;
}

.insta-top-line {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.insta-top-line h1 {
  margin: 0;
  color: #253642;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.065em;
  text-shadow: 0 20px 58px rgba(150, 196, 219, 0.28);
}

.insta-tag {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  color: rgba(37, 54, 66, 0.62);
  background: rgba(255, 241, 243, 0.72);
  border: 1px solid rgba(249, 172, 177, 0.48);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.insta-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: rgba(37, 54, 66, 0.58);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.insta-stats strong {
  color: #253642;
  font-weight: 600;
}

.insta-bio {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(37, 54, 66, 0.68);
  font-size: 17px;
  line-height: 1.7;
}


/* FEED GRID */

.insta-feed {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.insta-post {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  background: #aed6e8;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(86, 129, 148, 0.12);
}

.insta-post img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
}

.insta-post:hover img {
  transform: scale(1.04);
  filter: brightness(0.88) saturate(1.04);
}

.insta-post::after {
  content: "open";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff1f3;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  background: rgba(37, 54, 66, 0.24);
  transition: opacity 0.28s ease;
}

.insta-post:hover::after {
  opacity: 1;
}


/* MODAL */

.insta-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(37, 54, 66, 0.34);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.insta-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.insta-modal-card {
  position: relative;
  width: min(980px, 100%);
  max-height: min(720px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  background:
    linear-gradient(
      180deg,
      rgba(255, 241, 243, 0.98),
      rgba(255, 204, 204, 0.94)
    );
  color: #253642;
  overflow: hidden;
  box-shadow: 0 34px 110px rgba(86, 129, 148, 0.36);
}

.insta-modal-image {
  min-height: 560px;
  background: #c8e7f1;
}

.insta-modal-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.insta-modal-text {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.insta-modal-text span {
  margin-bottom: 24px;
  color: rgba(37, 54, 66, 0.48);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.insta-modal-text p {
  margin: 0;
  color: rgba(37, 54, 66, 0.72);
  font-size: 20px;
  line-height: 1.75;
  letter-spacing: -0.018em;
}

.insta-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 241, 243, 0.88);
  color: rgba(37, 54, 66, 0.58);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.insta-modal-close:hover {
  color: #253642;
}