
.upcoming-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.85);
    backdrop-filter:blur(6px);
    z-index:99999;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
  }
  
  .upcoming-modal{
    width:min(1200px,95vw);
    max-height:90vh;
    overflow:auto;
    background:#101010;
    border-radius:1.1em;
    padding:0.5em;
    border:1px solid rgba(255,255,255,.08);
  }

  @media (min-width: 1024px) {
    .upcoming-modal{
      border-radius:20px;
      padding:30px;
    }
  }
  
  .upcoming-close-icon{
    position:absolute;
    top:18px;
    right:18px;
    border:none;
    background:none;
    color:white;
    cursor:pointer;
    font-size:28px;
  }
  
  .event-banner{
    text-align:center;
    margin-bottom:24px;
  }
  
  .event-banner h1{
    color:#fff;
  }
  
  .event-subtitle{
    color:#d84e7a;
  }
  
  .event-tagline{
    color:#ccc;
  }
  
  /*.upcoming-section{
    margin-top:24px;
  }*/

  .upcoming-section-grid{
    display:grid;
    grid-template-columns:
      repeat(
        auto-fit,
        minmax(280px,1fr)
      );
    gap:16px;
  }
  
  .upcoming-section-title{
    color:#d84e7a;
    margin-bottom:12px;
  }
  
  .upcoming-card{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    border-radius:1em;
    padding:0.7em;
    margin-bottom:0.1em;
  }
  
  @media (min-width: 1024px) {
    .upcoming-card{
      border-radius:14px;
      padding:16px;
      margin-bottom:12px;
    }
  }
  
  .upcoming-card-title{
    margin:0 0 0.05em;
  }
  
  @media (min-width: 1024px) {
    .upcoming-card-title{
      margin:0 0 12px;
    }
  }
  
  .upcoming-list{
    margin:0;
    padding-left:0.5em;
  }
  
  .upcoming-list li{
    margin-bottom:0.2em;
  }

  @media (min-width: 1024px) {
    .upcoming-list{
      margin:0;
      padding-left:20px;
    }
    .upcoming-list li{
      margin-bottom:8px;
    }
  }
  
  .upcoming-close-btn{
    width:100%;
    margin-top:24px;
    border:none;
    background:#d84e7a;
    color:white;
    padding:12px;
    border-radius:12px;
    cursor:pointer;
  }

  .upcoming-event-card{
  background:
    linear-gradient(
      135deg,
      rgba(
        216,
        78,
        122,
        0.15
      ),
      rgba(
        255,
        255,
        255,
        0.03
      )
    );
}

.upcoming-event-title{
  font-size:1.1rem;
  margin-bottom:1em;
}

@media (min-width: 1024px) {
  .upcoming-event-title{
    font-size:1.3rem;
    margin-bottom:15px;
  }
}

.event-detail-row{
  display:flex;
  gap:0.5em;
  align-items:flex-start;
  margin-bottom:0.8em;
}

@media (min-width: 1024px) {
  .event-detail-row{
    gap:10px;
    margin-bottom:12px;
  }
}

.event-icon{
  width:22px;
  text-align:center;
}

.upcoming-link{
  color:#d84e7a;
  text-decoration:none;
  font-weight:500;
}

.upcoming-link:hover{
  text-decoration:underline;
}

/*
.upcoming-image-overlay{
  position:fixed;
  inset:0;
  z-index:99999;

  background:rgba(0,0,0,.9);

  display:flex;
  justify-content:center;
  align-items:center;

  padding:20px;
}

.upcoming-image-popup{
  position:relative;

  max-width:900px;
  width:100%;

  border-radius:20px;
  overflow:hidden;

  background:#111;

  box-shadow:
    0 20px 60px rgba(0,0,0,.4);
}

.upcoming-image{
  display:block;

  width:100%;
  height:auto;
}

.upcoming-image-close{
  position:absolute;

  top:12px;
  right:12px;

  width:40px;
  height:40px;

  border:none;
  border-radius:50%;

  cursor:pointer;

  background:rgba(0,0,0,.8);
  color:white;
  font-size:18px;
}

.upcoming-image-actions{
  display:flex;
  gap:12px;

  justify-content:center;

  padding:20px;
}

.upcoming-register-btn{
  background:#d84e7a;
  color:white;

  border:none;
  border-radius:10px;

  padding:12px 24px;

  cursor:pointer;
}

.upcoming-register-btn:hover{
  background:#c23f6a;
}
*/

.upcoming-image-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;

  background: rgba(0, 0, 0, 0.9);

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 12px;

  overflow-y: auto;
}

.upcoming-image-popup {
  position: relative;

  width: min(100%, 1100px);
  max-height: 95vh;

  border-radius: 18px;
  overflow: hidden;

  background: #111;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4);

  display: flex;
  flex-direction: column;
}

.upcoming-image {
  display: block;

  width: 100%;
  height: auto;

  max-height: 80vh;

  object-fit: contain;
}

.upcoming-image-close {
  position: absolute;

  top: 10px;
  right: 10px;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  cursor: pointer;

  background: rgba(0, 0, 0, 0.8);
  color: white;

  font-size: 18px;
  z-index: 10;
}

.upcoming-image-actions {
  display: flex;
  gap: 12px;

  justify-content: center;

  padding: 16px;

  flex-wrap: wrap;

  background: #111;
}

.upcoming-event-image-wrap.img {
  width: 100%;
  height: auto;
  display: block;
}

.upcoming-register-btn,
.upcoming-close-btn {
  min-height: 48px;
  min-width: 180px;

  padding: 12px 24px;

  border: none;
  border-radius: 12px;

  cursor: pointer;

  font-weight: 600;
}

.upcoming-register-btn {
  background: #d84e7a;
  color: white;
}

.upcoming-close-btn {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.upcoming-register-btn:hover {
  background: #c9416c;
}

@media (max-width: 768px) {

  .upcoming-image-overlay {
    padding: 8px;
  }

  .upcoming-image-popup {
    width: 100%;
    border-radius: 12px;
  }

  .upcoming-image {
    max-height: 70vh;
  }

  .upcoming-image-actions {
    flex-direction: column;
    padding: 12px;
  }

  .upcoming-register-btn,
  .upcoming-close-btn {
    width: 100%;
    min-width: unset;
  }

  .upcoming-image-close {
    width: 36px;
    height: 36px;
    font-size: 16px;
    top: 8px;
    right: 8px;
  }
}

/* Image Loader Styles */
.popup-loading {
  pointer-events: none;
}

.popup-loading .popup-loader {
  pointer-events: all;
}

.popup-loader {
  position: absolute;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0,0,0,.85);

  z-index: 20;
}

.popup-loader-spinner {
  width: 60px;
  height: 60px;

  border-radius: 50%;

  border: 5px solid
    rgba(255,255,255,.15);

  border-top-color: #d84e7a;

  animation:
    popupSpin 1s linear infinite;
}

@keyframes popupSpin {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.image-loading {
  opacity: 0;
}

.upcoming-image {
  transition: opacity .3s ease;
}

.popup-error {
  color: white;
  font-size: 1rem;
  text-align: center;
}

.upcoming-image-close:disabled,
.upcoming-close-btn:disabled,
.upcoming-register-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* Image Loading Retry, Progress Bar */

.popup-progress-container {
  width: 220px;
  height: 8px;

  margin-top: 20px;

  background:
    rgba(255,255,255,.12);

  border-radius: 99px;

  overflow: hidden;
}

.popup-progress-fill {
  width: 0%;

  height: 100%;

  background:
    linear-gradient(
      90deg,
      #d84e7a,
      #ff8db1
    );

  transition: width .25s ease;
}

.popup-progress-text {
  margin-top: 12px;

  color: white;

  font-size: .9rem;
}

.popup-retry-btn {

  margin-top: 16px;

  border: none;

  cursor: pointer;

  padding:
    10px 20px;

  border-radius: 10px;

  background: #d84e7a;

  color: white;
}

.popup-retry-btn:hover {
  background: #c43e69;
}

