@import "style-dynamic.css";

/* Slider mode (same pattern as Project) */
.module-project .digifox-project-slider {
  width: 100%;
  overflow: hidden !important;
  position: relative;
}

.module-project .digifox-project-slider .digifox-project-track {
  position: relative;
  z-index: 1;
}

/* Image artwork: ratio and img styles come from style-dynamic (project_setting_image_crop) */
.module-project .digifox-project-slider .project-artwork img {
  display: block;
}

.grid-project {
  display: grid;
}

.projects-description { 
/*	text-align: center;
	margin-bottom: 2.5em;*/
}

/* Icon artwork: top margin + padding (grid and slider) */
.grid-project .project-artwork:has(.fa-stack),
.module-project .project-artwork:has(.fa-stack) {
  margin-top: 1em;
  padding: 0.5em;
}

/* Image artwork: ratio and img styles from style-dynamic */
.grid-project .project-artwork img {
  display: block;
}

/* Text and .project-artwork (icon + image) alignment: project_setting_text_align in style-dynamic */

.grid-project .box .project-title {
  margin-bottom: 0.3em;
  margin-top: 0.3em;
}

.grid-project .box .project-desc {
  margin: 0.2em 0;
}

/* Modal (lightbox) */
.project-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99999;
}

.project-modal:target {
  display: block;
}

.project-modal__content {
  position: absolute;
  inset: 5%;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  overflow: auto;
  padding: 1.5em;
}

.project-modal__close {
  position: sticky;
  top: 0;
  float: right;
  width: 32px;
  height: 32px;
  text-decoration: none;
}

.project-modal__close::before,
.project-modal__close::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 15px;
  width: 2px;
  height: 20px;
  background: #333;
}

.project-modal__close::before {
  transform: rotate(45deg);
}

.project-modal__close::after {
  transform: rotate(-45deg);
}

.project-modal__gallery img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 1em;
}

.project-modal__caption {
  margin-top: 0.5em;
  font-size: 0.9em;
  opacity: 0.8;
}

body.project-modal-open {
  overflow: hidden;
}