:root {
    --navy: #192f52;
    --navy2: #0f2039;
    --red: #c9282d;
    --coral: #e8595e;
    --text: #26364c;
    --muted: #718096;
    --light: #f6f7f8;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0
  }

  body {
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased
  }

  button {
    font: inherit
  }

  /* HERO */
  .gallery-hero {
    position: relative;
    background: var(--navy);
    color: #fff;
    overflow: hidden;
    padding: 60px 0 60px
  }

  .hero-in {
    position: relative;
    width: 85%;
    margin: auto;
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 56px
  }

  .eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 16px
  }

  .eyebrow::before {
    content: "";
    display: inline-block;
    width: 34px;
    height: 2px;
    background: var(--coral);
    vertical-align: middle;
    margin-right: 12px
  }

  .gallery-hero h1 {
    font-size: 50px;
    line-height: .98;
    font-family: 'DM Serif Display', serif;
    font-weight: 400
  }

  .gallery-hero h1 span {
    color: var(--coral);
    font-style: italic;
    font-weight: 600;
    display: block
  }

  .gallery-hero p {
    max-width: 560px;
    margin-top: 22px;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    line-height: 1.85
  }

  .big {
    text-align: right
  }

  .big b {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(90px, 12vw, 170px);
    line-height: .8;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55)
  }

  .big span {
    display: block;
    margin-top: 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7)
  }

  /* MARQUEE */
  .marquee {
    position: relative;
    overflow: hidden;
    margin-top: 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent)
  }

  /* Slower carousel: was 70s / 85s */
  .track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: slide 180s linear infinite
  }

  .marquee.rev .track {
    animation-direction: reverse;
    animation-duration: 210s
  }

  .marquee:hover .track {
    animation-play-state: paused
  }

  @keyframes slide {
    to {
      transform: translateX(-50%)
    }
  }

  .thumb {
    position: relative;
    flex: none;
    width: 250px;
    height: 165px;
    border: 0;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: #22385c;
    border-radius: 3px
  }

  .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity .5s, transform .5s;
    filter: saturate(.9)
  }

  .thumb.loaded img {
    opacity: 1
  }

  .thumb:hover img {
    transform: scale(1.08);
    filter: none
  }

  /* SKELETON */
  .skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #e8ebee 0%, #f7f8f9 48%, #e8ebee 100%);
    background-size: 220% 100%;
    animation: shine 1.25s linear infinite;
    z-index: 1;
    transition: opacity .35s ease
  }

  .thumb .skeleton {
    background: linear-gradient(90deg, #22385c 0%, #2f4a76 48%, #22385c 100%);
    background-size: 220% 100%
  }

  .loaded>.skeleton {
    opacity: 0;
    pointer-events: none
  }

  @keyframes shine {
    from {
      background-position: 220% 0
    }

    to {
      background-position: -220% 0
    }
  }

  /* COLLECTION */
  .collection {
    background: var(--light);
    padding: 80px 0px 110px
  }

  .wrap {
    width: 85%;
    margin: auto
  }

  .sec-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 38px;
    border-bottom: 1px solid #dfe3e8
  }

  .sec-head h2 {
    color: var(--navy);
    font-size: 40px;
    line-height: 1;
    font-weight: 600;
    font-family: 'DM Serif Display', serif
  }

  .sec-head h2 i {
    color: var(--red);
    font-weight: 600
  }

  .sec-head span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted)
  }

  .mason {
    columns: 3;
    column-gap: 24px
  }

  .gi {
    break-inside: avoid;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(46px) scale(.98);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1)
  }

  .gi.in {
    opacity: 1;
    transform: none
  }

  .gallery-card {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: #e8ebee;
    box-shadow: 0 12px 30px rgba(25, 47, 82, .12)
  }

  .gallery-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity .6s ease, transform .8s ease
  }

  .gallery-card.loaded img {
    opacity: 1
  }

  .gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 32, 57, .85), rgba(15, 32, 57, .05) 60%);
    opacity: 0;
    transition: opacity .35s;
    z-index: 2
  }

  .gallery-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(var(--coral), var(--coral)) 0 0/26px 2px no-repeat, linear-gradient(var(--coral), var(--coral)) 0 0/2px 26px no-repeat, linear-gradient(var(--coral), var(--coral)) 100% 100%/26px 2px no-repeat, linear-gradient(var(--coral), var(--coral)) 100% 100%/2px 26px no-repeat;
    opacity: 0;
    transform: scale(1.08);
    transition: .4s
  }

  .num {
    position: absolute;
    left: 20px;
    bottom: 38px;
    z-index: 3;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 58px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transform: translateY(14px);
    transition: .4s
  }

  .view {
    position: absolute;
    left: 22px;
    bottom: 20px;
    z-index: 3;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: .4s .05s
  }

  .view::after {
    content: "";
    display: inline-block;
    width: 26px;
    height: 1px;
    background: #fff;
    margin-left: 10px;
    vertical-align: middle
  }

  @media (hover:hover) {
    .gallery-card:hover img {
      transform: scale(1.07)
    }

    .gallery-card:hover::after,
    .gallery-card:hover::before,
    .gallery-card:hover .num,
    .gallery-card:hover .view {
      opacity: 1;
      transform: none
    }
  }

  /* LIGHTBOX */
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(12, 27, 48, .95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease
  }

  .lightbox.open {
    opacity: 1;
    visibility: visible
  }

  .lightbox img {
    max-width: min(1150px, 92vw);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .35)
  }

  .lb-btn {
    position: fixed;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(25, 47, 82, .75);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
    transition: .2s
  }

  .lb-btn:hover {
    background: var(--red);
    border-color: var(--red)
  }

  #close {
    top: 20px;
    right: 20px;
    font-size: 24px
  }

  #prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%)
  }

  #next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%)
  }

  .counter {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(25, 47, 82, .75);
    padding: 7px 12px;
    font-size: 12px;
    letter-spacing: .1em
  }

  body.lock {
    overflow: hidden
  }

  @media(max-width:900px) {
    .gallery-hero {
      padding: 30px 0 30px;
    }

    .hero-in {
      grid-template-columns: 1fr;
      gap: 26px
    }

    .big {
      text-align: left
    }

    .mason {
      columns: 2;
      column-gap: 16px
    }

    .gi {
      margin-bottom: 16px
    }

    .collection {
      padding: 64px 20px 84px
    }

    .thumb {
      width: 200px;
      height: 135px
    }
  }

  @media(max-width:600px) {
    .gallery-hero h1 {
      font-size: 35px
    }

    .hero-in {
      padding: 0 18px
    }

    .gallery-hero p {
      font-size: 14px
    }

    .mason {
      columns: 1
    }

    .collection {
      padding: 52px 14px 66px
    }

    .sec-head span {
      display: none
    }

    .lightbox {
      padding: 12px
    }

    .lb-btn {
      width: 40px;
      height: 40px
    }

    .lightbox img {
      max-width: 94vw;
      max-height: 82vh
    }

    #close {
      top: 10px;
      right: 10px
    }

    #prev {
      left: 8px
    }

    #next {
      right: 8px
    }

    .thumb {
      width: 170px;
      height: 115px
    }
  }

  @media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
      animation: none !important;
      transition: none !important
    }

    .gi {
      opacity: 1;
      transform: none
    }
  }