/* *{
    margin:0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-size: 62.5%;
}

.container .heading{
    font-size: 3rem;
    margin: 2rem 0;
    text-transform: capitalize;
    color: var(--purple);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    letter-spacing: .2rem;
    text-align: center;
    text-shadow: 0.3rem 5rem;
}

.video-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.video-container .video{
    height: 33rem;
    width: 24rem;
    margin: 2rem;
    box-shadow: 0 .5rem 1rem  rgba(0, 0, 0, .5);
    overflow: hidden;
    border-radius: 1rem;
}

.video-container .video video{
    height: 132%;
    width: 101%;
    object-fit: cover;
    outline: none;
    border: none;
    cursor: pointer;
}

.video-container .video video:hover{
    transition: .2s linear;
    transform: scale(1.3);
}

.video-container .video .active{
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    width: 80%;
    box-shadow: 0 0 0 100hv rgba(0, 0, 0, .7);
    z-index: 1;
}

.video-container .video .active:hover{
    transition: none;
    transform:  translate(-50%, -50%) scale(1);
}
 */


/* General Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Set minimum width */
    gap: 10px;
    padding: 10px;
}

.gallery-item {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #fff; /* Changed from black (#000) to white (#fff) */
}

.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the entire video fits without cropping */
    max-height: 100%; /* Ensures that videos don't get distorted */
}

/* Hover Effects for Videos and Images */
.gallery-item:hover video,
.gallery-item:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        margin-left: 199px !important;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Smaller width for smaller screens */
        grid-auto-rows: 150px; /* Adjust height for smaller screens */
        gap: 23px !important;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        margin-left: 120px;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Smaller width for mobile */
        grid-auto-rows: 130px; /* Adjust height for mobile */
        gap: 3px;
    }
}
.custom-vid-modal {
    display: none;
    justify-content: center; /* Centers the video horizontally */
    align-items: center; /* Centers the video vertically */
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
    display: none;
    position: fixed;
    padding: 0rem;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.custom-vid-modal-content {
    display: block;
    margin: auto;
    padding-top: 8rem;
    max-height: auto;
    width: auto;
    height: auto;
    padding-right: 1.9rem;
    max-width: 78%;
    object-fit: contain; /* Ensure the video maintains its aspect ratio */
}
 
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.prev, .next {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Hide the dropdown content by default */
.custom-dropdown-content {
    display: none;
    list-style-type: none;
    padding-left: 20px;
    margin: 0;
  }
  
  /* When the parent li has the open class, show the dropdown */
  .sidebar ul li.open .custom-dropdown-content {
    display: block;  /* Show the dropdown content */
    padding-top: 1rem;
  }
  
  /* Style the links in the dropdown */
  .sidebar ul li a {
    text-decoration: none;
    color: black;
    font-size: 14px;
    line-height: 1.4;
  }
  
  .custom-dropdown-content li a {
    font-size: 14px;
    color: #000;
    padding: 5px 0;
    display: block;
  }
  
  /* Add arrow (caret) after dropdown links */
  .dropdown-toggle::after {
    content: ' \25BC'; /* Unicode for down arrow (caret) */
    font-size: 12px;
    margin-left: 5px;
  }
  
  /* Rotate arrow when open */
  .sidebar ul li.open .dropdown-toggle::after {
    content: ' \25B2'; /* Unicode for up arrow (caret) */
  }


@media (max-width: 480px) {
    .gallery-grid {
        margin-left: 17px !important;
        grid-auto-rows: 486px !important;
    }
}

.sidebar ul li {
    padding: 4px 0 !important;
}