/* Institutional pages CSS - This file is auto-generated from theme SCSS */

/* Lightbox styles for gallery */
.institutional-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.institutional-lightbox__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.institutional-lightbox__content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  z-index: 1;
}

.institutional-lightbox__content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.institutional-lightbox__close {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.institutional-lightbox__close:hover {
  opacity: 1;
}

body.lightbox-open {
  overflow: hidden;
}

/* Fade-in animation for blocks */
.institutional-block {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.institutional-block.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Accordion animation */
.accordion-item.animating .accordion-collapse {
  transition: height 0.35s ease;
}

/* Floating label enhancement */
.form-item {
  position: relative;
}

.form-item label.floating {
  position: absolute;
  top: -10px;
  left: 10px;
  background: #fff;
  padding: 0 5px;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.form-item label.floating.focus {
  color: #e91e63;
}