.video-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  /* overflow: hidden; */
  background-color: black;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}
.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.player {
  background: #fff;
  padding: 5px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

audio {
  margin-top: 10px;
}

.chat-conversation .right .conversation-list .dropdown .dropdown-menu[style] {
  right: 0 !important;
  left: 0 !important;
}
i.ri-close-line.text-danger.search-remove-group.end-0.top-0.px-1 {
  margin: auto 0px !important;
  font-size: 24px;
}

.attached-file .text-start h5.font-size-14 {
  max-width: 17ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.attached-file .avatar-sm {
  height: 2rem !important;
  width: 2rem !important;
}

.videoPreview, .audioPreview {
  max-width: 100%;
}

.audioPreview {
  height: 100px;
  background: #ffffffcf;
}
.videoChat {
  max-width: 300px;
  max-height: 300px;
}

@media (max-width:575.98px){
  audio {
  width: 220px;
}
}

@media (max-width:450px){
  .videoChat {
    max-width: 200px;
  }
}

@media (max-width:400px){
  .videoPreview, .audioPreview {
    max-width: 350px;
  }
}

 .embed-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;           /* 16:9 aspect ratio */
    margin: 1rem 0;
    overflow: hidden;
    border-radius: 0.5rem;           /* 8px rounded corners */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .embed-wrapper iframe,
  .embed-wrapper blockquote,
  .embed-wrapper .embed-content {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
  }

  /* Instagram blockquote needs its own display tweaks: */
  .embed-wrapper blockquote {
    display: flex;
    justify-content: center;
    align-items: center;
  }

   .chat-input {
      width: 100%;
      min-height: 36px;             /* One-line height */
      max-height: 120px;            /* Optional max height */
      resize: none;
      overflow: hidden;
      border: 1px solid #ccc;
      border-radius: 4px;
      padding: 6px 10px;
      font-size: 14px;
      font-family: sans-serif;
      box-sizing: border-box;
      line-height: 1.4;
      outline: none;
      white-space: pre-wrap;        /* Allows wrapping */
    }

  
    .instagram-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px; /* Optional max size */
  padding-top: 125%; /* Aspect ratio: height/width × 100 (e.g., 5:4 = 125%) */
  overflow: hidden;
}

.instagram-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100vw;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Style both grid-item and popup-img elements */
.grid-item,
.popup-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    width: 100%;
    height: auto;
    min-width: 0;
    max-width: 100%;
    background-color: #f0f0f0;
    display: block !important;
    margin: 0 !important;
}

/* Style images inside both types of containers */
.grid-item img,
.popup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    border: none;
    outline: none;
}

/* Hover effects for both types */
.grid-item:hover img,
.popup-img:hover img {
    transform: scale(1.02);
}

/* Override Bootstrap classes that might interfere */
.grid .d-inline-block {
    display: block !important;
}

.grid .m-1 {
    margin: 0 !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .grid {
        gap: 6px;
        width: 100vw;
        margin: 0;
        padding: 0;
    }
}

/* Ensure the grid container itself is properly sized */
.grid_container {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
}

.ml-2{
  margin-left: 5px;
}

.no-images-section {
    width: 80%;                    /* Makes it responsive with some space on the sides */
    max-width: 600px;              /* Limits the width to a maximum value for better look on large screens */
    min-height: 150px;
    min-width: 100vw;             /* Increased height for a more spacious look */
    display: flex;
    justify-content: center;       /* Center content horizontally */
    align-items: center;           /* Center content vertically */
    font-size: 20px;               /* Increased font size for better readability */
    color: #555;                   /* Darker text color for better contrast */
    text-align: center;            /* Center text */
    padding: 20px;                 /* Inner padding for more space around text */
    margin: 10% auto;              /* Centers the section in the middle of the screen, with margin on top and bottom */
}


.gallery-discover-nav-sticky{
  position: sticky;
  top: 0;
  z-index: 1020;
  background:#f7f7ff;
}

body[data-layout-mode="dark"] .gallery-discover-nav-sticky{
  position: sticky;
  top: 0;
  z-index: 1020;
  background: #36404a;
}