:root {
    --main-color-for-dialog:  #ff6767; 
    --main-color-hover-for-dialog:  #471f1f; 
    --seconde-color-for-dialog: #72af4b;
    --third-color-for-dialog: #4e7833;

}


.show-gallery-object{
    display: flex;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    margin: auto;
    width: fit-content;
    background-color: white;
    
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;

}
.object-information p[data-name = "tags-for-dialog"] {    
    all: unset;
    display: none;
}

.object-information div[data-name = "show-tags-for-dialog"] {
    all: unset;
    margin-top: 10px;
    height: fit-content;
    overflow-y: hidden;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    gap: 6px;

}

.object-information p[data-name = "content-for-dialog"] {
    flex: 1;
    overflow: hidden;
    overflow-y: auto;
}



.a-for-dialog-tags  {
    all: unset;
    display: inline-block;
    font-size: medium;
    font-weight: 400;
    
    width: fit-content;
    height: fit-content;
    padding: 8px;
    border-radius: 30%;
    color: white;
    background-color: var(--seconde-color-for-dialog);
}

.a-for-dialog-tags:hover{
    color: unset;
    background-color: var(--third-color-for-dialog);
}
.a-for-dialog-tags:focus {
    color: white;
}
.object-information p {
    width: 322.5px;
    font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 9px 10px;
    max-width: 100%;
    -webkit-font-smoothing: antialiased !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    margin-left: auto;
    margin-right: auto;
}



.object-fotos p:last-child {
    position: absolute;
    bottom: 2px;
    font-size: x-large;
    right: 50%;
    font-weight: 480;
    color:  var(--main-color-for-dialog);
}
.object-information {
    /* box-sizing: border-box; width: calc(100% + 50px); */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 400px;
    height: 500px;
    /* background-image: repeating-linear-gradient(
        to bottom,
        white 0em,
        white 2em,
        rgb(199, 199, 199) 0em,
        rgb(199, 199, 199) 3em
    ); */
}


.object-fotos {    
    position: relative;
    height: 500px;
    transition: 2s;
    /* min-width: 100px; */
}
.object-fotos img {
    display: block;
    height: 100%;
    max-width: 600px;
}

#gallery-hjalper-tags {
    display: none;
}

.object-information h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: xx-large;
    height: 60px;
    background-color: rgb(230, 231, 232);
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


.object-information  p:nth-child(2) {
    
}
.object-information > p:last-child {
    margin-top: auto;
    align-self: center;

    color: rgba(24, 51, 170, 0);    
}
#dialogForGalleryObjectCloseButton1 {
    color: white;
    margin-top: auto;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
    min-height: 40px;
    border-radius: 5px;
    background-color:  var(--main-color-for-dialog);
    border: transparent;
    /* color: white; */
    font-size: medium;
    font-weight: 600;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

}

#dialogForGalleryObjectCloseButton2 {
    position: absolute; 
    top: 20px; 
    right: 20px;
    border-radius: 100%;
    width: 25px;
    height: 25px;
    background-color:var(--main-color-for-dialog);
    border-color: transparent;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

}

#dialogForGalleryObjectCloseButton1:hover,  #dialogForGalleryObjectCloseButton2:hover{
    background-color: var(--main-color-hover-for-dialog);
}
body.modal-open {
  height: 100vh;
  overflow-y: hidden;
}

#dialogForGalleryObjectCloseButton2:where(.wp-site-blocks :focus) {
    outline-width: 0px;
    outline-style: solid
}
#dialogForGalleryObject {
    margin-block-start: auto;
    margin-block-end: auto;
    width: fit-content;
    max-width: 100%;
   
    
    border: none;
    outline: none;
    background-color: transparent;
}

@media(max-width: 1000px) {
    
    .show-gallery-object{ 
        flex-direction: column;
        width: 1fr;  
        border-radius: 0px;
    }
    .object-fotos img {
        height: unset;
        width: 100%;
        max-width: unset;
    }
    .object-fotos {
        height: unset;
        width: 100%;
    }
    .object-information {
        width: 100%;
    }
    #dialogForGalleryObject{
    height: 100%;
    max-height: 100%;
    width: 100%;
    margin: 0;
    padding: 0; 
    background-color: white;
    }
}   
.custom-gallery{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    min-height: 200px;
    gap: 5px;
}


.box {
    width: 200px;
    height: 200px;
    background-color: wheat;
}


.newGalleryObject {
    background-color: white;
    display: grid;
    grid-template-rows: 300px 100px ;
    flex-direction: column;
    align-items: center;
    min-width: 20px;
    overflow: hidden;    
    height: 400px;
    border-radius: 10px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.newGalleryObject:hover {
    background-color: rgb(167, 168, 168);
}

.newGalleryObject:active {
    background-color: var(--main-color-for-dialog);
}

.newGalleryObject > img {
    max-width: 100%;
    height: 100%;
}

.newGalleryObject > h1 {
    margin: auto;
    font-size: large;
}




.arrow-hjalper-gallery {
    overflow: hidden;
    display: flex;
    align-items: center;
    position: absolute;
    top: 0px;
    bottom: 0px;
    margin: 0;
    padding: 0;
    width: 20%;    
    font-size: 50px;
    color: var(--main-color-for-dialog);
    /* softened text shadow to avoid sharp corners */
    /* text-shadow: -2px -1px 2px white, 1px -1px 2px white, -1px 1px 2px white, 1px 1px 2px white; */
    /* rounded corners for arrow background */
    border-radius: 8px;
    
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                            supported by Chrome, Edge, Opera and Firefox */
}
.arrow-hjalper-gallery:hover{
    background-color: rgba(0, 0, 0, 0.473);
    color: var(--main-color-hover-for-dialog);
}
.arrow-hjalper-gallery:active{
    background-color: rgba(0, 0, 0, 0.623);
}
.left-arrow {
    left: 0px;
}
.right-arrow {
    right: 0px;
    justify-content: right;
}

.a-pages-for-gallery {
    display: flex;
}

.a-pages-for-gallery > a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    background-color: rgb(255, 214, 214);
    margin: 2px;

    border: solid black 1px;
    border-radius: 5px;
}


body:has(dialog[open]) {
    overflow: hidden;
}