/* gm-lightbox-link.css */

/* Override Gutenberg global spacing inside this specific area */
:root :where(.gm-links-tight.is-layout-constrained) > * {
  margin-block-start: clamp(8px, 2.2vw, 24px);
  margin-block-end: 0;
}

/* The link */
.gm-lightbox-link {
    font-size: clamp(36px, 6vw, 98px);
    font-weight: 500;
    line-height: 0.9em;
    color: #000;
    text-transform: uppercase;
    text-decoration: none;
}

.gm-lightbox-link:hover {
  text-decoration-line: underline;
  text-decoration-thickness: clamp(2px, 1vw, 6px); 
  text-underline-offset: 6px; 
    color: #000;
}

.gm-lightbox-link:active, .gm-lightbox-link:focus {
    color: #000;
    outline: none;
}

.gm-lightbox-link-wrap{
  display: block;
  text-align: center;
}


/* Hover preview */
.gm-hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999;
  display: none;
  pointer-events: none;
  transform: translate(-9999px, -9999px);
}

.gm-hover-preview__img {
  display: block;
  max-width: 220px;
  max-height: 160px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* Disable hover preview on touch/no-hover devices */
@media (hover: none), (pointer: coarse) {
  .gm-hover-preview {
    display: none !important;
  }
}

/* Lightbox */
html.gm-lightbox-open,
html.gm-lightbox-open body {
  overflow: hidden;
}

.gm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: none;
}

.gm-lightbox.is-open {
  display: block;
}

.gm-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.gm-lightbox__panel{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gm-lightbox__figure{
  position: relative;
  margin: 0;
  display: inline-block;          /* shrink-wrap around image */
  max-width: min(1100px, 96vw);
  max-height: 90vh;
}

.gm-lightbox__img{
  display: block;
  max-width: 79vw;
  max-height: 80vh;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  background: #111;
}


.gm-lightbox__caption {
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  opacity: 0.9;
}

.gm-lightbox__close {
  position: absolute;
  top: -33px;
  right: -33px;

  width: 28px;
  height: 28px;

  padding: 0;
  border: 0!important;
  background: transparent!important;
  color: #fff;

  cursor: pointer;
  z-index: 3;

  outline: none;
  box-shadow: none;
  border: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent; /* iOS Safari */
}

.gm-lightbox__close:focus{
  outline: none;
  box-shadow: none;
}

/* Make the SVG fill the button area */
.gm-lightbox__close-icon{
  display: block;
  width: 100%;
  height: 100%;
}

