.modal-overlay {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: rgba(0, 0, 0, 0.7);
   display: flex;
   justify-content: center;
   align-items: center;
   z-index: 1000;
}

.modal-content {
   background-color: #2a2a2a;
   padding: 2.5rem;
   padding-right: 3rem;
   border-radius: 8px;
   max-width: 600px;
   width: 90%;
   max-height: 90vh;
   overflow-y: auto;
   position: relative;
   color: rgba(255, 255, 255, 0.87);
}

.modal-close {
   position: absolute;
   top: 1rem;
   right: 1rem;
   background: none;
   border: none;
   color: rgba(255, 255, 255, 0.87);
   font-size: 1.5rem;
   cursor: pointer;
   padding: 0.5rem;
   line-height: 1;
}

.modal-close:hover {
   color: #fff;
}

.modal-content h2 {
   margin: 0 0 1rem 0;
   font-size: 1.5rem;
   color: rgba(255, 255, 255, 0.87);
   font-family: 'Fraunces', serif;
}

.modal-header-section {
   margin-bottom: 1rem;
}

.modal-header-section h2 {
   margin: 0 0 0.5rem 0;
   font-size: 1.5rem;
   color: rgba(255, 255, 255, 0.87);
   font-family: 'Orelega One', serif !important;
   font-weight: normal;
}

.modal-theme-info {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   margin-bottom: 0.5rem;
}

.theme-color-dot {
   width: 16px;
   height: 16px;
   border-radius: 50%;
   display: inline-block;
}

.theme-label {
   font-family: 'Poppins', sans-serif;
   font-size: 0.9rem;
   color: rgba(255, 255, 255, 0.8);
   font-weight: 500;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.modal-image {
   width: 100%;
   max-height: 300px;
   object-fit: contain;
   border-radius: 4px;
   margin-bottom: 1rem;
}

.modal-description {
   font-size: 1rem;
   line-height: 1.5;
   margin-bottom: 1rem;
   color: rgba(255, 255, 255, 0.7);
   font-family: 'Poppins', sans-serif;
}

.modal-date {
   display: flex;
   flex-direction: column;
   gap: 0.5rem;
   font-size: 1.1rem;
   color: rgba(255, 255, 255, 0.6);
   font-family: 'Orelega One', serif;
}

@media (max-width: 768px) {
   .modal-content {
      width: 95%;
      padding: 2rem;
   }

   .modal-header-section h2 {
      font-size: 1.3rem;
   }

   .theme-color-dot {
      width: 14px;
      height: 14px;
   }

   .theme-label {
      font-size: 0.8rem;
   }

   .modal-image {
      max-height: 200px;
   }
}

/* Estilos personalizados para barras de scroll menos invasivas */
.modal-content::-webkit-scrollbar {
   width: 8px;
}

.modal-content::-webkit-scrollbar-track {
   background: rgba(255, 255, 255, 0.05);
   border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
   background: rgba(255, 255, 255, 0.2);
   border-radius: 4px;
   transition: background 0.3s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
   background: rgba(255, 255, 255, 0.3);
}

/* Para Firefox */
.modal-content {
   scrollbar-width: thin;
   scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

/* Ocultar scrollbar cuando no se está usando */
.modal-content:not(:hover)::-webkit-scrollbar-thumb {
   background: rgba(255, 255, 255, 0.1);
}