/* DOD Hero Frontend Styles */

.dod-hero-section {
  position: relative;
  width: 100%;
  /* overflow: hidden; */
}

.dod-hero-video {
  top: 50%;
  left: 50%;
  min-width: 100%;
  width: 100%;
  height: 100% !important;
  z-index: 0;
  object-fit: cover;
}

.dod-hero-cards {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.dod-project-card {
  position: absolute;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dod-project-card .dod-card-inner {
  display: none;
  flex-direction: column;
  width: 180px;
  height: fit-content;
  padding-bottom: 10px;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #000;
  z-index: 999;
  position: relative;
}


@media screen and (min-width:768px){
  .dod-project-card:hover .dod-card-inner {
  display: flex;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
}

.dod-project-card .dod-card-image {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.dod-project-card .dod-card-content {
  padding: 5px 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dod-project-card .dod-card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
}

.dod-project-card .dod-card-cta {
  font-size: 0.7rem;
  display: block;
  opacity: 0.9;
}

/* Hardcoded example from your initial CSS */
[data-fr=""] {
  width: 4vw;
  height: 6vh;
  left: 53%;
  bottom: 24%;
  z-index: 22;
}


/* --- NEW STYLES START HERE --- */

/* --- Card Interaction --- */
.dod-project-card {
    cursor: pointer; /* Indicates the card is clickable */
}

.dod-project-card .dod-card-title a {
    color: inherit;
    text-decoration: none;
}

.dod-project-card:hover .dod-card-title a {
    text-decoration: underline;
}

/* --- Fullscreen Button --- */
#dod-fullscreen-btn {
  display: none; /* Hidden by default */
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 10;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

#dod-fullscreen-btn:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

/* --- Preview Modal Styles --- */
#dod-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999999999999999999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.dod-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.dod-modal-content {
  position: relative;
  background: #000;
  color: white;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  z-index: 1001;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  text-align: left; /* Aligns content left */
}

.dod-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: white;
  color: black;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  line-height: 30px;
  text-align: center;
}

.dod-modal-body img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.dod-modal-body h3 {
  margin: 15px 20px 5px;
  font-size: 1.5rem;
  line-height: 1.2;
}

.dod-modal-body a {
  display: inline-block;
  margin: 0 20px 20px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

.dod-modal-body a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dod-hero-section {
    /* height: 80vh; */ /* Example from original */
  }
  
  #dod-preview-modal {
    transform:rotate(90deg);
    max-width:90%!important;
  }
  #dod-preview-modal img{
    max-height:70vw
  }
.dod-hero-section.active {
  position: fixed;
  width: 100vh!important;
  overflow: hidden;
  transform: rotate(90deg)!important;
  z-index: 99999999999;
  background: black;
  height: 100vw!important;
  top: 50%;
  left: 50%;
transform: translate(-50%, -50%) rotate(90deg) !important;
}

.dod-hero-section.active .dod-hero-video {
  top: 50%;
  left: 50%;
  /* min-width: 100%; */
  width: 100%;
  /* height: 100% !important; */
  z-index: 0;
  object-fit: cover;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* padding: 10px; */
}
  .dod-project-card .dod-card-image {
    height: 100px;
  }

  .dod-project-card .dod-card-content {
    padding: 10px;
  }

  .dod-project-card .dod-card-title {
    font-size: 0.95rem;
  }

  .dod-project-card .dod-card-cta {
    font-size: 0.8rem;
  }

  /* Show the fullscreen button on mobile */
  #dod-fullscreen-btn {
    display: block;
  }
}