/*
Theme Name:   galledia Images
Theme URI:    https://galledia.ch
Description:  Image DB for galledia-Websites.
Author:       Basil
Author URI:   https://galledia.ch
Template:     astra
Version:      1.0.0
*/

/* Add your custom CSS below */

.imagedb-content {
    width: 1280px;
    margin: 0 auto;
    margin-top: 50px;
}

#image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 5px;
    row-gap: 0;
}

.image-item {
    flex: 0 1 auto; /* Flexible grow, shrink and basis */
    margin: 0 0 5px 0;
}

.image-item img {
    width: 100%; /* Ensure image takes up full width of container */
    height: auto; /* Maintain aspect ratio */
}

.pswp__button.pswp__button--download-button {
    background: #fff;
    color: #000;
    border-radius: 4px;
    padding: 5px 10px;
    width: 150px;
    opacity: 1;
    position: absolute;
    top: calc(100% + 10px); /* Adjust this value as needed */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.pswp__button.pswp__button--download-button:hover {
    background: #fff;
}

.logobox {
    width: 1215px;
    margin: 0 auto;
    position: relative;
}

.logo-with-loading {
    position: absolute;
    height: 120px;
    margin-left: -20px;
    z-index: 999;
}

.ast-mobile-header-wrap .ast-primary-header-bar, .ast-primary-header-bar .site-primary-header-wrap {
    min-height: 120px;
}

.transparent-logo {
    position: relative;
    z-index: 999;
    height: 100%;
}

.loading-swirl {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    animation: spin 6s cubic-bezier(.65,.05,.36,1);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.start-animation .loading-swirl {
  animation: spin 6s cubic-bezier(.65, .05, .36, 1);
}

#image-search-form {
    width: 100%;
    display: flex;
}

.top-tags a {
    border: 1px solid var(--ast-border-color);
    border-radius: 4px;
    padding: 10px 15px;
    display: inline-block;
    margin: 10px 0;
    box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.05);
    color: var(--ast-form-input-text,#475569);
    cursor: pointer;
}

input[type="text"] {
    height: 48px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

input[type="submit"].searchbutton {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: #464646;
    padding: 15px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
    display: block;
}

input[type="submit"].searchbutton:hover {
    color: #fff;
    font-weight: bold;
}