@charset "UTF-8";
:root {
  --bs-bluegray: #6c757d;
  --bs-bluegray-trans: #405e6fc0;
  --bs-border-rad: 8px;
}

.gallery-item-1 {
  position: relative;
  border-radius: var(--bs-border-rad);
  overflow: hidden;
  cursor: pointer;
  background-color: #f8f9fa;
  aspect-ratio: 4/3;
}

.gallery-item-1 img,
.gallery-item-1 canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item-1 .overlay-1 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(64, 94, 111, 0.85) 0%, rgba(108, 117, 125, 0.95) 100%);
  color: #ffffff;
  padding: 0.75rem 1rem;
  text-align: center;
  transition: transform 0.4s ease;
  transform: translateY(0);
}

.gallery-item-1:hover img,
.gallery-item-1:hover canvas {
  transform: scale(1.08);
}

.gallery-item-1:hover .overlay-1 {
  transform: translateY(100%);
}

.modal-content {
  border-radius: var(--bs-border-rad);
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-body {
  border-radius: var(--bs-border-rad);
}

.modal-title-text {
  color: var(--bs-bluegray);
  font-weight: 600;
}

/* ── Modal image overlay ────────────────────────────── */
.modal-img-wrap {
  position: relative;
  overflow: hidden;
  border-top-left-radius: var(--bs-border-rad);
  border-top-right-radius: var(--bs-border-rad);
  line-height: 1;
}

.modal-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  background: linear-gradient(to bottom, rgba(40, 60, 75, 0.82) 0%, rgba(20, 38, 52, 0.97) 100%);
  color: #fff;
  padding: 0.65rem 1.1rem 0.8rem;
  max-height: 72px;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1), padding 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  backdrop-filter: blur(4px);
  border-bottom-left-radius: var(--bs-border-rad);
  border-bottom-right-radius: var(--bs-border-rad);
}

.modal-img-overlay .mio-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  opacity: 1;
  max-height: 2rem;
  margin-bottom: 0.35rem;
  transition: opacity 0.35s ease, max-height 0.4s ease, margin-bottom 0.4s ease;
}

.modal-img-overlay .mio-labels {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0;
}

.modal-img-overlay .mio-label {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.75;
  text-align: center;
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  padding-top: 0.3rem;
  transition: opacity 0.3s ease;
}

.mio-label.lbl-blue {
  border-color: #5b9bd5;
  color: #aad3f7;
}

.mio-label.lbl-green {
  border-color: #5dbd87;
  color: #9de3bc;
}

.mio-label.lbl-teal {
  border-color: #3fbfcf;
  color: #90e4ef;
}

/* Expanded detail blocks */
.modal-img-overlay .mio-details {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.55rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.08s, opacity 0.45s ease 0.12s;
}

.mio-detail-block {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: 0.55rem;
}

.mio-detail-block.db-blue {
  border-color: #5b9bd5;
}

.mio-detail-block.db-green {
  border-color: #5dbd87;
}

.mio-detail-block.db-teal {
  border-color: #3fbfcf;
}

/* Hover States */
.modal-img-overlay:hover {
  max-height: 260px;
  padding-bottom: 1rem;
}

.modal-img-overlay:hover .mio-title {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
}

.modal-img-overlay:hover .mio-label {
  opacity: 1;
}

.modal-img-overlay:hover .mio-details {
  max-height: 200px;
  opacity: 1;
}

/* ── Asset Badges & PDF Thumbnails ── */
.asset-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.asset-badge.badge-video {
  background: rgba(220, 53, 69, 0.85);
}

.asset-badge.badge-pdf {
  background: rgba(25, 135, 84, 0.85);
}

.gallery-pdf-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #495057;
  padding: 1.5rem;
  height: 100%;
  border-radius: var(--bs-border-rad);
  border: 1px dashed #dee2e6;
  text-align: center;
}

.gallery-pdf-thumb svg {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
  transition: transform 0.3s ease;
}

.gallery-item-1:hover .gallery-pdf-thumb svg {
  transform: scale(1.15) translateY(-5px);
}