/* Popup Overlay */
#devimg {
    display: none;
    /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Dark overlay */
    z-index: 9999;
    overflow-y: auto;
    /* Enable scroll if content overflows */
    transition: opacity 0.3s ease;
    padding: 2rem;
    box-sizing: border-box;
}

/* Close button styling (add this button dynamically if needed) */
#devimg .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}

/* Media container for images/videos */
#devimg .media-item {
    margin-bottom: 1.5rem;
    text-align: center;
}

#devimg .media-item img,
#devimg .media-item video {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

#devimg .media-item img:hover,
#devimg .media-item video:hover {
    transform: scale(1.05);
}

/* Navigation arrows */
#devimg .nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
}

#devimg .nav-arrow.left {
    left: 1rem;
}

#devimg .nav-arrow.right {
    right: 1rem;
}

/* Responsive behavior */
@media (max-width: 768px) {
    #devimg {
        padding: 1rem;
    }

    #devimg .media-item img,
    #devimg .media-item video {
        max-width: 100%;
    }
}

#devimg {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(8px);
    padding: 20px;
    z-index: 9999;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
}

.gallery {
    max-width: 1920px;
    margin: 0 auto;
    /*padding-left: 8rem;*/
}

.gallery-row {
    width: 100%;
    height: auto;
    margin: 0 auto;
    margin-top: 2rem;
    /*padding: 0 1.5rem;*/
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}

.gallery-img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0;
    display: table;
    border-spacing: 5px 0;
}

.gallery-img a {
    display: table-cell;
    cursor: pointer;
    transition: all 0.5s linear;
    -webkit-transition: all 0.5s linear;
    -moz-transition: all 0.5s linear;
    -ms-transition: all 0.5s linear;
    -o-transition: all 0.5s linear;
}



.mediaContainer {
    max-width: 80%;
    display: flex;
    margin: 40px auto;
    gap: 10px;
    max-height: 70vh;
}

.devimgGallery_open {
    position: relative;
}

.photo_logo_play {
    position: absolute;
    width: 30%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    padding: 20px;
}

.photo_heading_logo {
    color: #ffffff;
    font-size: 26px;
    text-align: left;
    padding: 0 20px;
    position: absolute;
    bottom: 20px;
    font-weight: 300;
}

.devimg .media-item {
    max-width: 400px;
}

.devimg .media-details .ref {
    color: #ffffff !important;
    text-align: left;
}

.media-details {
    width: 100%;
    position: relative;
    text-align: left;
    padding-left: 10px;
}

.media-details-btn {
    height: 100%;
}

.buttons {
    display: flex;
    gap: 10px;
    position: absolute;
    bottom: 0;
}

.btn-one {
    background-color: #707070;
    padding: 0px 10px;
    border-radius: 20px;
    color: #ffffff;
    white-space: nowrap;
}

.btn-two {
    border: 1px solid #707070;
    padding: 0px 10px;
    border-radius: 20px;
    color: #707070;
    white-space: nowrap;
}


.div-logo-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-img {
    width: 30%;
    /* container width fixed */
    box-sizing: border-box;
}

.img-logo-tile {
    width: 100%;
    /* image fills container exactly */
    height: auto;
    display: block;
}

.logo-heading {
    height: 30px;
}

.media-details-btn .ref {
    color: #707070;
    margin-top: 10px;
}

.media-details-btnn .ref {
    color: #ffffff;
}

.gallerypic {
    cursor: default;
    /*cursor: pointer;*/
}

.gallerypic img{
    max-height: 100%;
    /*cursor: pointer;*/
}

.gallery-video {
    width: 80%;
    max-height: 100%;
}

.shortMedia .media-details {
    width: 30%;
}

.shortMedia .gallery-video {
    width: 60% !important;
}

.shortMedia .wider-video .gallery-video {
    width: 80% !important;
}


.media-two .media-details {
    width: 70%;
}

/*.shortMedia {*/
/*    margin: 40px !important;*/
/*}*/

.shortMedia .gallerypic {
    text-align: right;
}

span.close-div-btn {
    position: relative;
    display: flex;
    top: -10px;
    /*right: -100px;*/
    font-size: 35px;
    cursor: pointer;
}