/* Anthony Michelli — self-contained photo gallery.
   Images are displayed directly by CSS even if JavaScript fails.
   No Unite Gallery, $.widget, or Doteasy media-loader dependency. */
.gridGallery-element .grid-container { height: 100% !important; }
.video-element .video-inner { overflow: hidden !important; }
.video-element iframe, .video-element video { background-color: #000; position: relative; z-index: 0; }
.video-element iframe { width: 100% !important; height: 100% !important; }
.horizontal-container { display: table; height: 100%; width: 100%; }
.horizontal-wrapper { display: table-cell; vertical-align: middle; width: 100%; }
.horizontalLine { border: none; line-height: 1px; top: -50%; min-height: 1px; }

/* The existing layout gives the parent element a 713px × 430px frame. */
#el-3375140 #grid-el-3375140 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 3px;
  width: 100%;
  height: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#el-3375140 #grid-el-3375140 .grid-img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
  height: 205px;
  max-width: 100%;
  object-fit: cover;
  position: static;
  border: 0;
  cursor: zoom-in;
}
#el-3375140 #grid-el-3375140 .grid-img:focus-visible {
  outline: 3px solid #37475d;
  outline-offset: -3px;
}
@media (max-width: 768px) {
  #el-3375140 #grid-el-3375140 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #el-3375140 #grid-el-3375140 .grid-img { height: 180px; }
}
/* Gallery lightbox v3: zoom, pan, swipe and pinch; no external dependencies. */
#anthony-gallery-lightbox[hidden] { display: none !important; }
#anthony-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.55rem;
  padding: 3.5rem 4.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
}
#anthony-gallery-lightbox .gallery-lightbox-stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none; /* permits pinch + swipe handling on touchscreens */
  cursor: zoom-in;
}
#anthony-gallery-lightbox .gallery-lightbox-stage.is-zoomed {
  cursor: grab;
}
#anthony-gallery-lightbox .gallery-lightbox-stage.is-dragging {
  cursor: grabbing;
}
#anthony-gallery-lightbox .gallery-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  flex: 0 1 auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
}
#anthony-gallery-lightbox .gallery-lightbox-caption {
  min-height: 1.3em;
  max-width: 100%;
  white-space: pre-line;
  text-align: center;
  line-height: 1.4;
  font-size: 0.9rem;
  color: #fff;
 font-family: 'Lato';
}
#anthony-gallery-lightbox .gallery-lightbox-tools {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
#anthony-gallery-lightbox button {
  box-sizing: border-box;
  background: rgba(32,32,32,.92);
  color: #fff;
  font-size: 1.25rem;
  border: 1px solid #777;
  border-radius: 4px;
  min-width: 42px;
  min-height: 42px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  line-height: 1.1;
}
#anthony-gallery-lightbox button:hover,
#anthony-gallery-lightbox button:focus-visible {
  background: #3c4d64;
  outline: 2px solid #fff;
  outline-offset: 1px;
}
#anthony-gallery-lightbox button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
#anthony-gallery-lightbox .gallery-lightbox-zoom-value {
  color: #fff;
  font-variant-numeric: tabular-nums;
  min-width: 3.5rem;
  text-align: center;
  font-size: .9rem;
}
#anthony-gallery-lightbox .gallery-lightbox-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  z-index: 3;
  font-size: 1.65rem;
}
#anthony-gallery-lightbox .gallery-lightbox-prev,
#anthony-gallery-lightbox .gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-size: 2rem;
}
#anthony-gallery-lightbox .gallery-lightbox-prev { left: 1rem; }
#anthony-gallery-lightbox .gallery-lightbox-next { right: 1rem; }
@media (max-width: 768px) {
  #anthony-gallery-lightbox { padding: 3.5rem 0.75rem 1.25rem; }
  #anthony-gallery-lightbox .gallery-lightbox-prev { left: .45rem; }
  #anthony-gallery-lightbox .gallery-lightbox-next { right: .45rem; }
  #anthony-gallery-lightbox .gallery-lightbox-stage { margin-inline: 1.3rem; }
  #anthony-gallery-lightbox .gallery-lightbox-caption { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  #anthony-gallery-lightbox .gallery-lightbox-stage img { transition: none; }
}
