/* ========================================
   MEDIA MODAL/EXPANSION STYLES (Images & Videos)
   ======================================== */

/* Make videos and images clickable */
.adobe-video,
.sketch-img,
.persona-img,
.research-img,
.brainstorm-img {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.adobe-video:hover,
.sketch-img:hover,
.persona-img:hover,
.research-img:hover,
.brainstorm-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Media modal overlay */
#media-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

#media-modal.active {
  display: flex;
}

/* Close button */
#media-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

#media-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Modal content container */
#media-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal image */
#media-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  object-fit: contain;
}

/* Modal video */
#media-modal-content video {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
  #media-modal-close {
    top: 10px;
    right: 10px;
    font-size: 32px;
    width: 36px;
    height: 36px;
  }
  
  #media-modal-content {
    max-width: 95vw;
    padding: 40px 20px 20px 20px;
  }
  
  #media-modal-content img,
  #media-modal-content video {
    max-height: 85vh;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  #video-modal-close {
    top: 10px;
    right: 10px;
    font-size: 32px;
    width: 36px;
    height: 36px;
  }
  
  #video-modal-content {
    max-width: 95vw;
    padding: 40px 20px 20px 20px;
  }
  
  #video-modal-content video {
    max-height: 85vh;
  }
}

/* Video wrapper for overlay */
.video-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.video-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-wrapper:hover .video-overlay {
  opacity: 1;
}

/* Image wrapper for overlay (if you want to add it to images) */
.image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.image-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.image-wrapper:hover .image-overlay {
  opacity: 1;
}