/* scrollbar */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-thumb {
    border: 3px solid #00000000;
    background-clip: padding-box;
    border-radius: 9999px;
    background-color: var(--wp--preset--color--gahlii-black);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--wp--preset--color--gahlii-trans-black);
}

::-webkit-scrollbar-track {
    background: 0 0;
}

/* background */
.iosBG, body {
    background-color: rgb(248 234 227)!important;
    background-image: url('../img/hintergrund_light-min.png');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    background-blend-mode: overlay;
	overflow-x: hidden;
}

.iosBG {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

body {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    overflow-y: overlay;
    scroll-behavior: smooth;
    margin: 0;
    background-attachment: fixed;
}

main {
	min-height: calc(100vh - 110px);
}

/* images */
.cover-img img {
    object-fit: cover;
    width: 100%;
    max-width: unset;
    height: 100%;
    margin: 0;
    object-position: center;
    position: absolute;
}

.cover-img figure, figure.cover-img {
    width: 100%;
    height: 100%;
}

/* Inputs */
input:not([type=checkbox]):not([type=radio]), select, textarea {
    appearance: none;
    width: 100%;
    min-width: 100px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--wp--preset--color--gahlii-dark-black);
    padding: 5px 10px;
    margin: 0 0 10px;
    outline: none;
    box-sizing: border-box;
	resize: vertical;
    font-size: 13px;
}

input:not([type=checkbox]):not([type=radio]), select {
    height: 40px!important;
}

input:disabled:not([type=checkbox]):not([type=radio]), input:disabled:not([type=checkbox]):not([type=radio]):hover {
    background: #b50000;
}

input:not([type=checkbox]):not([type=radio]):hover, select:hover, textarea:hover,
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
    border: 1px solid var(--wp--preset--color--gahlii-trans-black);
    opacity: .7;
}

input[type="submit"], input[type="button"] {
	border: none;
    cursor: pointer;
    background: var(--wp--preset--color--gahlii-black);
    color: var(--wp--preset--color--gahlii-white);
}

input[type="submit"]:hover, input[type="button"]:hover {
    border: none;
    opacity: 1;
    background: var(--wp--preset--color--gahlii-trans-black)!important;
}

/* buttons */
.link_hover_biger, a:has(.link_hover_biger) {
    display: block;
    text-decoration: none;
    transition: transform .8s cubic-bezier(.18,.89,.33,1.11);
    cursor: pointer;
}

.link_hover_biger:hover {
    transform: scale(1.05) !important;
}

/* Search */
.header-search button {
    height: 40px;
    padding: 0 10px;
}

.header-search input {
    margin: 0!important;
}

/* album */
.gahli-album-holder {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
    gap: 24px;
	text-align: center;
}

.gahli-album {
    display: flex;
    background: var(--wp--preset--color--gahlii-pink);
    padding: 26px;
    border-radius: 20px;
    overflow: hidden;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
    width: 180px;
}

.gahli-album h4 {
    margin: 0;
}

.gahli-album p {
	font-size: 11px;
	margin: 0;
}

.gahli-album img {
    margin: -26px -26px 0;
    max-width: calc(100% + 52px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

/* gallery nav */
.gahli-gallery-nav {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    margin: 0;
}

.gahli-gallery-nav a {
    background-image: url(../img/arrow.svg);
    box-shadow: 1px 1px 3px -1px black;
    background-color: white;
    padding: 25px;
    border-radius: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px;
    display: block;
}

.gahli-gallery-nav a:hover {
    opacity: .5;
}

/* gallery */
.gahli-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(min(300px, 100%), (100% - (24px * (3 - 1))) /3), 1fr));
    gap: 24px;
}

.gahli-gallery img {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border: none;
    border-radius: 13px;
    overflow: hidden;
    transition: .3s;
    margin: 0;
}

.gahli-gallery img:hover {
    opacity: .7;
}

/* fix layouts */
ul.wp-block-post-template.is-layout-grid:has( > li:only-child) {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
}

ul.wp-block-post-template.is-layout-grid:has(.jubla_gruppe):has( > li:only-child) {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
}

.hidden {
    display: none!important;
}