
  /* =====================================================
     MAGAZINE SECTION
  ===================================================== */

  .mag-section {
    --ink: #1d2433;
    --red: #b5121b;
    --red-deep: #8f0e15;
    --paper: #fffdf8;
    --table: #e9e4db;
    --fold: rgba(60, 40, 20, 0.2);
  }

  .mag-heading {
    margin-bottom: 18px;
  }

  /* =====================================================
     MAGAZINE SPREAD
  ===================================================== */

  .mag-spread {
    position: relative;
    display: grid;
    grid-template-columns: 34% 66%;
    min-width: 0;
    background: var(--paper);
  }

  .mag-page {
    position: relative;
    min-width: 0;
  }

  /* Page fold shading */
  .mag-page-left::after,
  .mag-page-right::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    z-index: 1;
  }

  /* =====================================================
     LEFT PAGE - MAGAZINE COVER
  ===================================================== */
  .mag-section .heading-large {
    padding-top: 0px !important;
  }

  .mag-page-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background: #f7f3ea;
  }

  .mag-cover-link {
    display: block;
    width: 100%;
    max-width: 370px;
    height: auto;
    background: #fff;
    box-shadow:
      0 14px 24px -12px rgba(40, 28, 10, 0.6),
      0 0 0 1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .mag-cover-link:hover,
  .mag-cover-link:focus-visible {
    transform: translateY(-4px);
    box-shadow:
      0 20px 28px -12px rgba(40, 28, 10, 0.6),
      0 0 0 1px rgba(0, 0, 0, 0.06);
  }

  .mag-cover-image {
    display: block;
    width: 100%;
    height: auto;
  }

  .read-article-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    margin-top: 16px;
    padding: 9px 24px;
    background: var(--red);
    color: #fff !important;
    border: 1px solid var(--red);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none !important;
    transition: background 0.25s, color 0.25s;
  }

  .read-article-button:hover,
  .read-article-button:focus-visible {
    background: transparent;
    color: var(--red) !important;
  }

  /* =====================================================
     RIGHT PAGE - PROFILES (compact)
  ===================================================== */

  .mag-page-right {
    display: flex;
    flex-direction: column;
    padding: 20px 22px 14px;
    perspective: 1400px;
  }

  .latest-profiles-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Profiles are centred vertically in the space above the controls */
  .profile-pages {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-width: 0;
  }

  .profile-page {
    display: none;
    width: 100%;
    min-width: 0;
  }

  .profile-page.active {
    display: block;
  }

  /* Page turn animation */
  .profile-page.turn-next {
    transform-origin: left center;
    animation: turnNext 0.5s cubic-bezier(.2, .7, .2, 1) both;
  }

  .profile-page.turn-prev {
    transform-origin: right center;
    animation: turnPrev 0.5s cubic-bezier(.2, .7, .2, 1) both;
  }

  @keyframes turnNext {
    from {
      opacity: 0;
      transform: rotateY(-16deg) translateX(18px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes turnPrev {
    from {
      opacity: 0;
      transform: rotateY(16deg) translateX(-18px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  /* Heading */
  .profile-listing-heading {
    position: relative;
    margin: 0 0 14px;
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.2px;
    overflow-wrap: anywhere;
  }

  .profile-listing-heading a {
    color: var(--ink);
    text-decoration: none;
    background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat;
    transition: background-size 0.3s ease;
  }

  .profile-listing-heading a:hover,
  .profile-listing-heading a:focus-visible {
    background-size: 100% 2px;
  }

  /* Grid: 3 + 2 (centred), one consistent gap, no Bootstrap gutters */
  .profile-page .profile-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 0 12px;
  }

  .profile-page .profile-row:last-child {
    margin-bottom: 0;
  }

  .profile-page .profile-col {
    display: flex;
    flex: 0 0 calc((100% - 24px) / 3);
    max-width: calc((100% - 24px) / 3);
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .simple-profile {
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 0;
  }

  /* Profile image cards */
  .simple-profile-image-link {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 4px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .simple-profile-image {
    display: block;
    width: 100%;
    /* height: 220px; */
    /* object-fit: contain; */
    /* use "cover" to crop instead of showing white edges */
    object-position: center;
  }

  .simple-profile-image-link:hover,
  .simple-profile-image-link:focus-visible {
    transform: translateY(-4px);
    box-shadow:
      0 14px 18px -8px rgba(40, 28, 10, 0.55),
      0 0 0 1px rgba(0, 0, 0, 0.06);
  }

  /* Navigation controls */
  .profile-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding-top: 8px;
    border-top: 1px solid #ddd5c6;
  }

  .profile-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    padding: 6px 0;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
  }

  .profile-arrow i {
    font-size: 15px;
  }



  .profile-arrow:disabled {
    opacity: 0.3;
    cursor: default;
  }

  /* =====================================================
     EARLIER MAGAZINES
  ===================================================== */

  .other-magazines-section {
    margin-top: 46px;
  }

  .other-magazines-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    font-size: 15px;
    font-style: italic;
    font-weight: 600;
    color: #6d6558;
  }

  .other-magazines-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #cfc7b7;
  }

  .magazineSlickCarousel {
    position: relative;
    padding: 0 44px;
    min-width: 0;
  }

  .magazine-slick-item {
    padding: 10px 11px 16px;
  }

  .magazine-slick-item a {
    display: block;
    box-shadow: 0 10px 16px -8px rgba(40, 28, 10, 0.55);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .magazine-slick-item a:hover,
  .magazine-slick-item a:focus-visible {
    transform: scale(1.03);
    box-shadow: 0 18px 22px -10px rgba(40, 28, 10, 0.6);
  }

  .other-magazine-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Carousel arrows */
  .magazineSlickCarousel .slick-prev,
  .magazineSlickCarousel .slick-next {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: var(--paper);
    border: 1px solid #c9c0ae;
    border-radius: 50%;
    color: var(--ink) !important;
    opacity: 1 !important;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }

  .magazineSlickCarousel .slick-prev {
    left: 0;
  }

  .magazineSlickCarousel .slick-next {
    right: 0;
  }

  .magazineSlickCarousel .slick-prev::before,
  .magazineSlickCarousel .slick-next::before {
    display: none !important;
  }

  .magazineSlickCarousel .slick-prev i,
  .magazineSlickCarousel .slick-next i {
    display: block;
    font-size: 12px;
    color: inherit;
  }

  .magazineSlickCarousel .slick-prev:hover,
  .magazineSlickCarousel .slick-next:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff !important;
  }

  .magazineSlickCarousel .slick-disabled {
    opacity: 0.35 !important;
  }

  /* =====================================================
     TABLET
  ===================================================== */

  @media (max-width: 991.98px) {
    .mag-spread {
      grid-template-columns: 1fr;
    }

    .mag-page-left {
      padding: 24px 20px;
    }

    .mag-page-right {
      padding: 20px 18px 14px;
    }

    .mag-cover-link {
      max-width: 340px;
    }
  }

  /* =====================================================
     MOBILE
  ===================================================== */

  @media (max-width: 575.98px) {
    .mag-page-left {
      padding: 20px 16px;
    }

    .mag-cover-link {
      max-width: 230px;
    }

    .mag-page-right {
      padding: 18px 10px 12px;
    }

    .profile-listing-heading {
      margin-bottom: 10px;
      font-size: 18px;
    }

    .profile-page .profile-row {
      gap: 8px;
      margin-bottom: 8px;
    }

    .profile-page .profile-col {
      flex: 0 0 calc((100% - 16px) / 3);
      max-width: calc((100% - 16px) / 3);
    }

    .simple-profile-image-link {
      padding: 2px;
    }

    .profile-controls {
      margin-top: 10px;
      gap: 12px;
    }

    .profile-arrow {
      font-size: 13px;
    }

    .profile-arrow i {
      font-size: 10px;
    }

    .magazineSlickCarousel {
      padding: 0 34px;
    }
  }

  /* =====================================================
     VERY SMALL SCREENS
  ===================================================== */

  @media (max-width: 360px) {
    .mag-page-right {
      padding-right: 8px;
      padding-left: 8px;
    }

    .profile-page .profile-row {
      gap: 6px;
    }

    .profile-page .profile-col {
      flex: 0 0 calc((100% - 12px) / 3);
      max-width: calc((100% - 12px) / 3);
    }

    .profile-listing-heading {
      font-size: 16px;
    }

    .profile-arrow {
      font-size: 12px;
    }
  }

  /* =====================================================
     REDUCED MOTION
  ===================================================== */

  @media (prefers-reduced-motion: reduce) {

    .mag-section *,
    .mag-section *::before,
    .mag-section *::after {
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important;
    }
  }

  .magazineSlickCarousel {
    display: block;
    width: 100%;
    min-height: 180px;
    overflow: hidden;
}

.magazineSlickCarousel:not(.slick-initialized) {
    display: flex;
    gap: 15px;
}

.magazineSlickCarousel:not(.slick-initialized) .magazine-slick-item {
    flex: 0 0 20%;
    min-width: 0;
}

.magazineSlickCarousel:not(.slick-initialized) .magazine-slick-item img {
    width: 100%;
    height: auto;
    display: block;
}
