/* Katz gallery. Four across, square tiles, rollover label, gold framed lightbox */
.katz-gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.katz-gallery .katz-gtile{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #0D0D0D;
  cursor: pointer;
}
.katz-gallery .katz-gtile-img{
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  margin: 0;
  transition: transform 1.1s ease;
}
.katz-gallery .katz-gtile:hover .katz-gtile-img{ transform: scale(1.04); }

/* Rollover. Bottom centre, title over category */
.katz-gallery .katz-gcap{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 22px;
  background: linear-gradient(to top, rgba(13,13,13,.9) 0%, rgba(13,13,13,.55) 45%, rgba(13,13,13,0) 100%);
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.katz-gallery .katz-gtile:hover .katz-gcap,
.katz-gallery .katz-gtile:focus-visible .katz-gcap{ opacity: 1; }
.katz-gallery .katz-gcap-title{
  display: block;
  font-family: var(--katz-font-display, inherit);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  color: #FFFFFF;
}
.katz-gallery .katz-gcap-cat{
  display: block;
  font-family: var(--katz-font-body, inherit);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #D2AC47;
  margin-top: 5px;
}

/* Lightbox */
.katz-lb{
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 90px;
  background: rgba(13,13,13,.94);
}
.katz-lb.open{ display: flex; }
.katz-lb-figure{ max-width: min(1100px, 100%); margin: 0; text-align: center; }
.katz-lb-figure img{
  display: block;
  max-width: 100%;
  max-height: 74vh;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid #B88A44;
  background: #0D0D0D;
}
.katz-lb-cap{
  margin: 18px auto 0;
  font-family: var(--katz-font-display, inherit);
  font-size: 19px;
  color: #FFFFFF;
}
.katz-lb-cap::before{
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  margin: 0 auto 14px;
  background: linear-gradient(90deg,#926F34 0%,#D2AC47 28%,#F7EF8A 52%,#D2AC47 74%,#B88A44 100%);
}
.katz-lb-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #B88A44;
  border-radius: 0;
  background: transparent;
  color: #D2AC47;
  font-family: var(--katz-font-body, inherit);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .4s ease, color .4s ease;
}
.katz-lb-btn:hover{ background: #B88A44; color: #0D0D0D; }
.katz-lb-prev{ left: 28px; }
.katz-lb-next{ right: 28px; }
.katz-lb-close{
  position: absolute;
  top: 22px;
  right: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #D2AC47;
  font-family: var(--katz-font-body, inherit);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

/* Tablet */
@media (max-width: 1024px){
  .katz-gallery{ gap: 10px; }
  .katz-gallery .katz-gcap{ padding: 16px; }
  .katz-gallery .katz-gcap-title{ font-size: 17px; }
  .katz-lb{ padding: 32px 72px; }
}

/* Mobile */
@media (max-width: 767px){
  .katz-gallery{ grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .katz-gallery .katz-gcap{ padding: 14px; }
  .katz-gallery .katz-gcap-title{ font-size: 16px; }
  .katz-lb{ padding: 64px 16px 24px; }
  .katz-lb-figure img{ max-height: 64vh; }
  .katz-lb-btn{ top: auto; bottom: 24px; transform: none; width: 40px; height: 40px; }
  .katz-lb-prev{ left: 16px; }
  .katz-lb-next{ right: 16px; }
  .katz-lb-close{ top: 14px; right: 16px; }
}
