body {
        padding-left: 10px;
        padding-right: 10px;
    }

.break-50 {
    height: 50px;
}

.break-100 {
    height: 100px;
}

.filter-form-container {
    margin: 20px 0;
    padding: 20px 0;
    position: relative;
    background: url('https://decorsvg.com/wp-content/uploads/2024/12/background_wide.svg') no-repeat center center;
    background-size: cover;
}

.filter-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85); /* Adjust color and transparency */
    z-index: 1; /* Place behind form content */
}

.filter-form-container * {
    position: relative;
    z-index: 2; /* Place form content above the background */
}

.external-search-row {
    margin: 20px 0;
    padding: 100px 10px;
    position: relative;
    background: url('https://decorsvg.com/wp-content/uploads/2024/12/background_wide.svg') no-repeat center center;
    background-size: cover;
}

.external-search-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85); /* Adjust color and transparency */
    z-index: 1; /* Place behind form content */
}

.external-search-row * {
    position: relative;
    z-index: 2; /* Place form content above the background */
}




/*head captions*/
    .head-captions {
        text-align: center; /* Centers the text horizontally */
        padding: 100px 10px;     /* Adds padding around the content */
    }

    .head-captions h2 {
        margin-bottom: 10px; /* Adds some spacing below the H2 */
    }

    .head-captions h4 {
        margin-top: 0; /* Ensures there's no extra gap above the H4 */
    }


/*centered*/
.centered {
    text-align: center;
}





    /* General gallery page styling */
    .gallery-page {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        position: relative;
    }

    /* Left and right side elements styling */
    .galery-side-left,
    .galery-side-right {
        margin-top: 10px;
        width: 160px;
/*        background-color: #f0f0f0;*/
        box-sizing: border-box;
    }

    /* Main gallery area styling */
    .galery-main {
        padding-left: 10px;
        padding-right: 10px;
        flex: 1;
        background-color: #fff;
        box-sizing: border-box;
    }

    /* Responsive styling for mobile devices */
    @media (max-width: 1120px) {

        .galery-side-right {
            display: none;
        }

        .galery-main {
/*            flex: none;*/
            width: 100%;
        }
    }

    /* Responsive styling for mobile devices */
    @media (max-width: 930px) {

        .galery-side-left {
            display: none;
        }

        .galery-main {
/*
            flex: none;
            width: 100%;
*/
        }
    }




    /* General styling for the ad containers */
    .ad-left-sidebar,
    .ad-right-sidebar {
        width: 160px;
        height: 600px;
/*        background-color: #e0e0e0;*/
        /* Optional background color */
/*        color: #333;*/
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        position: sticky;
        top: 40px;
        /* Ad will stick 10px below the top of the viewport */
/*        margin-top: 60px;*/
/*        border: 1px solid black;*/
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    /* Left sticky ad positioning inside parent container */
    .ad-left-sidebar {
        align-self: flex-start;
        margin-right: auto;
    }

    /* Right sticky ad positioning inside parent container */
    .ad-right-sidebar {
        align-self: flex-start;
        margin-left: auto;
    }

    
    
    
    /* Container for the leaderboard ad, centered at the top of the page */
    .leaderboard-container {
        margin-top: 10px;
        width: 100%;
        display: flex;
        justify-content: center; /* Center the ad horizontally */
        padding: 10px 0; /* Optional padding above and below the ad */
/*        background-color: #f9f9f9;*/
        box-sizing: border-box;
    }

    /* Leaderboard ad styling */
    .leaderboard-ad-banner {
        width: 728px;
        height: 90px;
/*        background-color: #e0e0e0;*/
        display: flex;
        align-items: center;
        justify-content: center;
/*        color: #333;*/
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
/*        border: 1px solid black;*/
    }

    .leaderboard-small-replacement {
        width: 336x;
        height: 280px;
    }

/* When the screen is smaller than or equal to 806px */
@media (max-width: 806px) {
    .leaderboard-ad-banner {
        display: none;
    }
    .leaderboard-small-replacement {
        display: block;
    }
}


.mla-gallery-wrapper {
    margin-bottom: 40px;
}

    .mla-gallery-wrapper .ad-banner-wrapper-large,
    .mla-gallery-wrapper .ad-banner-wrapper-small {
        display: block;
        width: 100%;
        margin: 20px 0;
        padding: 40px 0;
/*        margin: 40px 0;*/
        text-align: center;
        clear: both;
        border-top: 1px solid #bebebe;
        border-bottom: 1px solid #bebebe;
    }
    
.ad-banner {
    display: inline-block;
}

    .mla-gallery-wrapper .ad-banner {
        width: 728px;
        height: 90px;
/*        display: inline-block;*/
/*        background-color: #f4f4f4;*/
/*        border: 1px solid #ddd;*/
        max-width: 100%;
/*        box-sizing: border-box;*/
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
.ad-banner-small {
    display: none;
}

    .mla-gallery-wrapper-small .ad-banner-small{
        width: 336px;
        height: 280px;
/*        display: none !important;*/
/*        background-color: #f4f4f4;*/
/*        border: 1px solid #ddd;*/
        max-width: 100%;
/*        box-sizing: border-box;*/
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .ad-banner-wrapper-large {
        grid-column: 1 / -1;
    }

    .ad-banner-wrapper-small {
        grid-column: 1 / -1;
    }


/* When the screen is larger than 806px */
@media (min-width: 807px) {
    .ad-banner-wrapper-large .ad-banner {
        display: inline-block;
    }
    .ad-banner-wrapper-small .ad-banner-small {
        display: none;
    }
}

/* When the screen is smaller than or equal to 806px */
@media (max-width: 806px) {
    .ad-banner-wrapper-large .ad-banner {
        display: none;
    }
    .ad-banner-wrapper-small .ad-banner-small {
        display: inline-block;
    }
}





    /* Main form container */
    #mla-filter-form {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    /* Search Input Styling */
    .search-line {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    #mla-search-box {
        width: 100%;
        padding: 30px 20px;
        font-size: 150%;
        box-sizing: border-box;
/*        background-color: #ebebeb;*/
        color: var(--ast-global-color-0);
    }

input[type=text] {
    border: 2px solid var(--ast-global-color-0);
    border-radius: 4px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
}

,
input[type=number] {
    border: 1px solid var(--ast-global-color-0) !important;
    border-radius: 4px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5) !important;
}

/*
input {
    font-weight: bold;
}
input::placeholder {
  font-weight: bold;
  opacity: 0.5;
  color: red;
}
*/

    /* Labels styling */
    #mla-filter-form label {
        font-weight: bold;
    }

    /* Dropdown line styling */
    .dropdown-line {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Each dropdown item styling */
    .dropdown-item {
        flex: 1 1 calc(25% - 10px);
        /* Four items per row on large screens */
        min-width: 150px;
        box-sizing: border-box;
    }

    .dropdown-item label,
    .dropdown-item select {
        display: block;
        width: 100%;
        font-size: 16px;
    }

    .dropdown-item select {
        padding: 8px;
        box-sizing: border-box;
    }

    /* Button line styling */
    .button-line {
        display: flex;
        gap: 10px;
    }

    .button-line input[type="submit"],
    .button-line input[type="button"] {
        padding: 10px 15px;
        font-size: 16px;
        cursor: pointer;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .dropdown-item {
            flex: 1 1 50%;
            /* Two items per row on medium screens */
        }
    }

    @media (max-width: 480px) {
        .dropdown-item {
            flex: 1 1 100%;
            /* One item per row on smaller screens */
        }
    }






    /* Outer container for gallery */
    #latest-gallery,
    #random-gallery,
    #filtered-gallery {
        display: grid;
        /* Use grid to ensure proper layout */
        overflow: hidden;
        /* Prevent overflow beyond container */
        width: 100%;
        box-sizing: border-box;
    }

    /* Main gallery container */
    .gallery {
        display: grid;
        /*  gap: 1.5%;*/
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        /* Multiple columns */
        align-items: center;
        width: 100%;
        margin: auto;
        box-sizing: border-box;
    }

    /* Each gallery item */
    .gallery .gallery-item {
/*        padding: 10px;*/
        width: 100%;
        position: relative;
        margin: 0;
        padding-bottom: 100%;
        overflow: hidden;
        box-sizing: border-box;
        border-radius: 10px;
    }
.gallery .gallery-item:hover {
        box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.4) !important;
    
}

    /* Image styling */
    .gallery .gallery-item .gallery-icon img {
        padding: 10px;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transform: translate(-50%, -50%);
        display: block;
        box-sizing: border-box;
        border: none !important; 
    }
    .gallery .gallery-item .gallery-icon img:hover {
        background: linear-gradient(#ffffff 10%, #e2e2e2 50%, #ffffff 90% );
    }

    /* Optional caption styling */
    .gallery .gallery-caption {
        display: none !important;
    }
.gallery-item .gallery-caption {
     display: none !important; 
}

    /* Optional extra styling for gallery items */
    .gallery .gallery-item .gallery-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }

    /* Styling for ad placeholders (optional) */
    .ad-placeholder {
        width: 300px;
        /* Fixed width for the ad */
        height: 250px;
        /* Fixed height for the ad */
/*        background-color: #f4f4f4;*/
        display: flex;
        /* Center content within ad-placeholder */
        justify-content: center;
        align-items: center;
/*        color: #555;*/
/*        font-size: 16px;*/
/*        border: 1px solid #ddd;*/
        text-align: center;
        box-sizing: border-box;
        margin: auto;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }


.gallery-ad {
    height: 100px;
    background-color: red;
}





    /* Center the pagination container */
    .pagination-container {
        display: flex;
        justify-content: center;
        gap: 8px;
        /* Space between pagination buttons */
        margin-top: 20px;
    }

    /* Style pagination links as buttons */
    .pagination-container .page-numbers {
        display: inline-block;
        padding: 10px 15px;
        text-decoration: none;
        color: #333;
        background-color: #f4f4f4;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 16px;
        transition: background-color 0.3s, color 0.3s;
    }

    /* Hover effect for pagination buttons */
    .pagination-container .page-numbers:hover {
        background-color: #ddd;
        color: #111;
    }

    /* Style for the active (current) page */
    .pagination-container .page-numbers.current {
        background-color: var(--ast-global-color-0);
        color: white;
        font-weight: bold;
        cursor: default;
        /* No pointer cursor for the current page */
    }

    /* Style for "Previous" and "Next" buttons */
    .pagination-container .prev,
    .pagination-container .next {
        font-weight: bold;
    }

    /* Responsive adjustments */
    @media (max-width: 480px) {
        .pagination-container .page-numbers {
            font-size: 14px;
            padding: 8px 12px;
        }
    }




/*//external search form*/
.external-search-row {
    display: flex;
    justify-content: center;
    margin: 20px 0; /* Adjust spacing as needed */
}

.custom-svg-mla-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px; /* Adjust as needed */
}

.custom-svg-mla-search-form button {
    padding: 0 20px; /* Adjust padding for button size */
    font-size: 150%; /* Icon size */
    border: 2px solod var(--ast-global-color-0);
    background-color: var(--ast-global-color-0);
    color: #fff; /* Icon color */
    cursor: pointer;
    border-radius: 5px 0 0 5px; /* Rounded corners on the left */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Matches the input height */
/*    outline: none;*/
}

/*
.custom-svg-mla-search-form button:hover {
    background-color: #555;
}
*/

.custom-svg-mla-search-form input[type="text"] {
    width: 100%;
    padding: 30px 20px;
    font-size: 150%;
    box-sizing: border-box;
/*    background-color: #ebebeb;*/
/*    border: 2px solod var(--ast-global-color-0);*/
    border-radius: 0 5px 5px 0; /* Rounded corners on the right */
/*    outline: none;*/
}

/*
.custom-svg-mla-search-form input[type="text"]:focus {
    background-color: #f9f9f9;
    border: 1px solid var(--ast-global-color-0);
}
*/




/*find Similar*/
/* Ensure gallery-icon is positioned relative for absolute positioning of the button */
.gallery-icon {
/*    position: relative;*/
    display: inline-block;
}

/* Initially hide the Find Similar button */
.find-similar {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 8px 12px;
    font-size: 14px;
    background-color: var(--ast-global-color-0); /* Use the theme's color */
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    z-index: 10; /* Ensure the button is above the image */
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Initially hidden */
    transition: opacity 0.3s, visibility 0.3s; /* Smooth transition for visibility */
}

/* Show the Find Similar button on hover */
.gallery-icon:hover .find-similar {
    opacity: 1; /* Make the button visible */
    visibility: visible; /* Make the button visible */
}

/* Optional: Style the button on hover */
.find-similar:hover {
/*    background-color: #a20202;*/
    background-color: rgb(255, 255, 255);
    color: #000;
}






/*find similar attachment image*/
/* Style for the "Find Similar" button on the single image page */
.attachment-image .find-similar-attachment {
/*
    position: absolute !important;
    top: 10px;
    left: 10px;
*/
    
    margin-bottom: 5px;
    padding: 8px 12px;
    font-size: 14px;
    background-color: var(--ast-global-color-0);
    /* Theme's color */
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    z-index: 10;
    opacity: 1;
    /* Always visible */
    visibility: visible;
    /* Always visible */
    transition: background-color 0.3s;
    /* Smooth hover effect */
}

/* Optional: Style the button on hover */
.attachment-image .find-similar-attachment:hover {
    /*    background-color: #a20202;*/
    background-color: rgb(255, 255, 255);
    color: #000;
}






.attachment-content-area {
    width: 100%;

}

.attachment-image {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 900px !important;
    height: auto !important;
    padding: 10px;
}

.attachment-image img {
    width: 100%; 
    height: auto; 
    display: block; 
}




@media (max-width: 1280px) {

    .attachment-image,
    .attachment-image img {
        max-width: 728px !important;
/*        max-height: auto;*/
    }
}

@media (max-width: 1096px) {

    .attachment-image,
    .attachment-image img {
        max-width: 600px !important;
/*        max-height: auto;*/
    }
}

@media (max-width: 816px) {

    .attachment-image,
    .attachment-image img {
        max-width: 100% !important;
/*            max-height: 100%;*/
    }
}




.attachment-download-button,
.attachment-details {
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
/*    text-align: center;*/
    /*        padding: auto;*/
}

.download_button {
    margin: 5px 5px;
    padding: 10px 20px !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    border-radius: 30px;
}

.round-button {
    padding: 15px 20px !important;
    border-radius: 30px;
}

button[type=submit] {
    z-index: 100;
}

button {
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.5);
}

select {
    border: 1px solid var(--ast-global-color-0);
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.5);
}











