/* Basic styles for the webpage */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
  }
  
  /* Collage container with CSS Grid */
  .collage-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns for flexible sizing */
    grid-auto-rows: 150px; /* Each row has a default height */
    gap: 10px; /* Space between images */
    width: 95%;
    margin: 20px auto;
  }
  
  /* Styles for images */
  .collage-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fits its container */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add depth with shadows */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* Indicate that the image is clickable */
  }
  
  .collage-image:hover {
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
  }
  
  /* Modal styles for expanded image view */
  .modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with transparency */
    justify-content: center;
    align-items: center;
    padding-top: 30px;
  }
  
  .modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0px 16px white;
  }
  
  .modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
  }
  
  .modal .close:hover {
    color: #ff6347; /* Tomato color on hover */
  }
  
  /* Custom spans for different image sizes */
  .collage-image:nth-child(1) {
    grid-column: span 3; /* Spans 2 columns */
    grid-row: span 2; /* Spans 2 rows */
  }
  
  .collage-image:nth-child(2) {
    grid-column: span 3;
    grid-row: span 2;
  }
  
  .collage-image:nth-child(3) {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .collage-image:nth-child(4) {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .collage-image:nth-child(5) {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .collage-image:nth-child(6) {
    grid-column: span 3;
    grid-row: span 2;
  }
  
  .collage-image:nth-child(7) {
    grid-column: span 3;
    grid-row: span 2;
  }
  
  .collage-image:nth-child(8) {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .collage-image:nth-child(9) {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .collage-image:nth-child(10) {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .collage-image:nth-child(11) {
    grid-column: span 3;
    grid-row: span 2;
  }
  
  .collage-image:nth-child(12) {
    grid-column: span 3;
    grid-row: span 2;
  }
  
  .collage-image:nth-child(13) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .modal-caption {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    padding: 10px;
}


  @media screen and (max-width: 768px) {
    .modal {
        padding-top: 100px;
    }
}