/* Main container */
    .event-display-container {
      padding: 10px;
      width: 100%;
    }

    /* Header with title and details */
    .event-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
      flex-wrap: wrap;
      background-color: cornsilk;
      border-radius: 50px;
    }

    .event-title {
      font-size: 24px;
      font-weight: bold;
      color: #333;
      margin-left: 15px;
    }

    /* Right side details container */
    .event-details {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .event-location {
      font-size: 14px;
      font-weight: bold;
      color: #555;
    }

    /* Calendar view */
    .event-date {
      display: flex;
      flex-direction: column;
      align-items: center;
      background-color: #f4f4f4;
      border: 1px solid #ccc;
      border-radius: 8px;
      padding: 5px 15px;
      font-weight: bold;
      color: #333;
      font-size: 14px;
      min-width: 70px;
    }

    .event-date .month {
      font-size: 16px;
      color: #555;
    }

    .event-date .day {
      font-size: 22px;
      font-weight: bold;
      color: #000;
    }

    .event-date .year {
      font-size: 14px;
      color: #777;
    }

    /* Image gallery */
    .scrollable-gallery {
      display: flex;
      overflow-x: auto;
      gap: 10px;
      scroll-behavior: smooth;
      position: relative;
      padding-bottom: 20px;
      cursor: grab;
    }

    .scrollable-gallery img {
      height: 150px;
      border-radius: 8px;
      cursor: pointer;
      transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    }

    .scrollable-gallery img:hover {
      transform: scale(1.05);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    /* Zoomed image viewer */
    .zoomed-viewer {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      animation: fadeIn 0.5s ease-in-out;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    .zoomed-viewer img {
      max-width: 80%;
      max-height: 80%;
      border-radius: 8px;
      transform: scale(0.8);
      animation: zoomIn 0.5s ease-in-out forwards;
    }

    @keyframes zoomIn {
      from {
        transform: scale(0.8);
        opacity: 0;
      }
      to {
        transform: scale(1);
        opacity: 1;
      }
    }

    .zoomed-viewer .close-btn {
      position: absolute;
      top: 10px;
      right: 20px;
      font-size: 44px;
      color: white;
      cursor: pointer;
    }

    .zoomed-viewer .arrow {
      position: absolute;
      top: 50%;
      font-size: 100px;
      color: white;
      cursor: pointer;
      transform: translateY(-50%);
    }

    .zoomed-viewer .arrow-left {
      left: 20px;
    }

    .zoomed-viewer .arrow-right {
      right: 20px;
    }
    
/* Responsive adjustments */
@media (max-width: 768px) {
  .event-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
  }

  .event-title {
    font-size: 20px;
    text-align: center;
  }

  .event-details {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .event-date {
    min-width: 60px;
    padding: 5px 10px;
  }

  .scrollable-gallery img {
    height: 120px;
  }

  .zoomed-viewer .close-btn {
    font-size: 32px;
    top: 10px;
    right: 10px;
  }

  .zoomed-viewer .arrow {
    font-size: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.9); /* Improve visibility */
    z-index: 1001; /* Ensure it's above other elements */
  }

  .zoomed-viewer .arrow-left {
    left: 15px;
  }

  .zoomed-viewer .arrow-right {
    right: 15px;
  }

  .zoomed-viewer img {
    max-width: 95%;
    max-height: 85%;
  }
}

@media (max-width: 480px) {
  .event-title {
    font-size: 18px;
  }

  .event-date {
    min-width: 50px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .event-date .month,
  .event-date .day,
  .event-date .year {
    font-size: 14px;
  }

  .scrollable-gallery img {
    height: 100px;
  }

  .zoomed-viewer .arrow {
    font-size: 35px; /* Slightly smaller for very small screens */
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.9);
    z-index: 1001;
  }

  .zoomed-viewer .arrow-left {
    left: 10px; /* Adjusted for smaller screen margins */
  }

  .zoomed-viewer .arrow-right {
    right: 10px;
  }

  .zoomed-viewer img {
    max-width: 90%;
    max-height: 80%;
  }
}

    