﻿.galeria-miniaturas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  padding: 20px 0;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

img.modal-trigger {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 5px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-block;
  margin: 4px;
}

img.modal-trigger:hover {
  border-color: #888;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  overflow: auto;
  text-align: center;
}

.modal-contenido-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content-item {
  max-width: 95vw;
  max-height: 90vh;
  background: white;
  border-radius: 8px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: visible;
  display: inline-block;
}

.modal-content-item .cerrar {
  position: absolute;
  top: 8px;
  right: 8px;
  color: white;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.modal-content-item .cerrar:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

.modal-content-item img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.modal-content-item iframe {
  width: 100%;
  height: 80vh;
  border: none !important;
  margin: 0;
  padding: 0;
  display: block;
  background: transparent;
}