@charset "UTF-8";

/* =====================================================
  THE COMRADE
  GALLERY / COMPLETE MINIMAL
===================================================== */

:root{
  --scr-bg:#fff;
  --scr-text:#111111;
  --scr-line:rgba(17,17,17,.14);

  --scr-wrap:1088px;
  --scr-pad:24px;
  --scr-gap:2px;

  --scr-dur:.6s;
  --scr-ease:cubic-bezier(.22,.61,.36,1);
}

/* =====================================================
  ONLY GALLERY
===================================================== */

.page-template-page-gallery header{
  display:none !important;
}

/* =====================================================
  BASE + FADE IN
===================================================== */

.page-template-page-gallery .scr-gallery{
  background:var(--scr-bg);
  color:var(--scr-text);
  min-height:100vh;
  opacity:0;
  transform:translateY(2px);
  transition:
    opacity .8s cubic-bezier(.22,.61,.36,1),
    transform .8s cubic-bezier(.22,.61,.36,1);
}

html.is-gallery-ready .page-template-page-gallery .scr-gallery{
  opacity:1;
  transform:none;
}

.page-template-page-gallery .scr-gallery figure{
  margin:0;
}

.page-template-page-gallery .scr-gallery-flow img,
.page-template-page-gallery .scr-gallery-intro img{
  display:block;
  width:100%;
  height:auto;
}

/* =====================================================
  WRAP
===================================================== */

.page-template-page-gallery .scr-gallery-intro__inner,
.page-template-page-gallery .scr-gallery-flow__inner,
.page-template-page-gallery .cs-about__footer-inner,
.page-template-page-gallery .cs-footer__copy{
  width:min(100%, var(--scr-wrap));
  margin-inline:auto;
  padding-left:var(--scr-pad);
  padding-right:var(--scr-pad);
  box-sizing:border-box;
}

/* =====================================================
  INTRO
===================================================== */

.page-template-page-gallery .scr-gallery-intro{
  padding-top:14px;
  padding-bottom:12px;
}

.page-template-page-gallery .scr-gallery-intro__inner{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:20px;
}

/* LOGO */

.page-template-page-gallery .scr-gallery-logo{
  margin:0;
  flex:0 0 auto;
  line-height:1;
}

.page-template-page-gallery .scr-gallery-logo__link{
  display:inline-block;
  text-decoration:none;
}

.page-template-page-gallery .scr-gallery-logo img{
  width:72px;
  height:auto;
}

/* =====================================================
  FLOW
===================================================== */

.page-template-page-gallery .scr-gallery-flow{
  padding-top:2px;
  padding-bottom:52px;
}

.page-template-page-gallery .scr-gallery-flow__inner > *:first-child{
  margin-top:0;
}

.page-template-page-gallery .scr-gallery-flow__inner > *:last-child{
  margin-bottom:0;
}

/* =====================================================
  GALLERY
===================================================== */

.page-template-page-gallery .wp-block-gallery,
.page-template-page-gallery .wp-block-gallery.has-nested-images{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:var(--scr-gap);
  margin:0 !important;
  align-items:start;
}

.page-template-page-gallery .wp-block-gallery .wp-block-image,
.page-template-page-gallery .wp-block-gallery.has-nested-images .wp-block-image,
.page-template-page-gallery .wp-block-gallery.has-nested-images figure.wp-block-image{
  display:block !important;
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  float:none !important;
  overflow:hidden;
  position:relative;
  aspect-ratio:3 / 4;
}

.page-template-page-gallery .wp-block-gallery .wp-block-image a,
.page-template-page-gallery .wp-block-gallery.has-nested-images .wp-block-image a{
  display:block;
  width:100%;
  height:100%;
  text-decoration:none;
  cursor:zoom-in;
}

.page-template-page-gallery .wp-block-gallery .wp-block-image img,
.page-template-page-gallery .wp-block-gallery.has-nested-images .wp-block-image img{
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  object-fit:cover;
  object-position:center 42%;
  background:transparent;
  filter:
    contrast(1.06)
    brightness(0.97)
    saturate(0.84)
    hue-rotate(-3deg);
  transition:
    opacity var(--scr-dur) var(--scr-ease);
}

.page-template-page-gallery .wp-block-gallery a:hover img{
  opacity:.96;
}

/* =====================================================
  LIGHTBOX
===================================================== */

.scr-lightbox-overlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  z-index:9999;
  opacity:0;
  visibility:hidden;
  transition:
    opacity .28s ease,
    visibility .28s ease;
}

.scr-lightbox-overlay.is-open{
  opacity:1;
  visibility:visible;
}

.scr-lightbox-img{
  display:block;
  max-width:86vw;
  max-height:88vh;
  width:auto;
  height:auto;
  object-fit:contain;
  filter:none !important;
  box-shadow:
    0 12px 40px rgba(0,0,0,.12),
    0 2px 8px rgba(0,0,0,.06);
}

body.is-lightbox-open{
  overflow:hidden;
}

/* =====================================================
  FOOTER
===================================================== */

.page-template-page-gallery .cs-about__footer{
  display:block;
  padding:48px 0 34px;
  border-top:none;
}

.page-template-page-gallery .cs-about__footer-inner{
  width:min(100%, var(--scr-wrap));
  margin-inline:auto;
  padding-left:var(--scr-pad);
  padding-right:var(--scr-pad);
  box-sizing:border-box;
  max-width:none;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:34px;
}

.page-template-page-gallery .cs-about__footer-logo{
  flex:0 0 auto;
}

.page-template-page-gallery .cs-about__footer-logo a{
  display:inline-block;
  text-decoration:none;
}

.page-template-page-gallery .cs-about__footer-logo img{
  display:block;
  width:72px;
  height:auto;
  max-width:none;
  opacity:.92;
}

.page-template-page-gallery .cs-about__footer-links{
  display:flex;
  align-items:flex-start;
  margin-left:auto;
}

.page-template-page-gallery .cs-about__footer-menu{
  display:flex;
  align-items:flex-start;
  gap:26px;
  margin:0;
  padding:0;
  list-style:none;
}

.page-template-page-gallery .cs-about__footer-menu li{
  margin:0;
  padding:0;
  list-style:none;
}

.page-template-page-gallery .cs-about__footer-menu a{
  display:inline-block;
  font-family:"Cormorant Garamond", serif;
  font-size:11px;
  line-height:1.2;
  letter-spacing:.12em;
  text-decoration:none;
  color:#333;
  opacity:.72;
  transition:
    opacity .4s cubic-bezier(.22,.61,.36,1),
    letter-spacing .4s cubic-bezier(.22,.61,.36,1);
}

.page-template-page-gallery .cs-about__footer-menu a:hover{
  opacity:.92;
  letter-spacing:.13em;
}

.page-template-page-gallery .cs-about__footer-menu .current-menu-item a,
.page-template-page-gallery .cs-about__footer-menu .current_page_item a{
  opacity:.9;
}

/* =====================================================
  COMMON FOOTER COPY
===================================================== */

.page-template-page-gallery .cs-footer{
  padding:34px 0 21px;
}

.page-template-page-gallery .cs-footer__copy{
  width:min(100%, var(--scr-wrap));
  margin-inline:auto;
  padding-left:var(--scr-pad);
  padding-right:var(--scr-pad);
  box-sizing:border-box;
  font-family:"Cormorant Garamond", serif;
  font-size:9px;
  letter-spacing:.12em;
  text-transform:none;
  color:#333;
  opacity:.4;
}

/* =====================================================
  SP
===================================================== */

@media (max-width:768px){

  :root{
    --scr-pad:16px;
    --scr-gap:2px;
  }

  .page-template-page-gallery .scr-gallery-intro{
    padding-top:14px;
    padding-bottom:12px;
  }

  .page-template-page-gallery .scr-gallery-flow{
    padding-top:2px;
    padding-bottom:40px;
  }

  .page-template-page-gallery .wp-block-gallery,
  .page-template-page-gallery .wp-block-gallery.has-nested-images{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:var(--scr-gap);
  }

  .scr-lightbox-img{
    max-width:92vw;
    max-height:84vh;
  }

  .page-template-page-gallery .cs-about__footer{
    padding:34px 0 21px;
  }

  .page-template-page-gallery .cs-about__footer-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:21px;
  }

  .page-template-page-gallery .cs-about__footer-logo img{
    width:64px;
  }

  .page-template-page-gallery .cs-about__footer-links{
    margin-left:0;
  }

  .page-template-page-gallery .cs-about__footer-menu{
    display:grid;
    grid-template-columns:repeat(4, max-content);
    column-gap:18px;
    row-gap:12px;
    justify-content:start;
  }

  .page-template-page-gallery .cs-about__footer-menu a{
    white-space:nowrap;
  }

  .page-template-page-gallery .cs-footer__copy{
    font-size:10px;
    letter-spacing:.12em;
  }
}