.cards_CTA {
    align-items: stretch;
    .card {
        height: -webkit-fill-available;
        border: none;
        border-radius: 5px;
        overflow: hidden;
        background-color: var(--secondary-bg-color);
        color: #fff;
        .card-header {
            background-color: var(--secondary-bg-color);
            border-bottom: 2px solid  var(--primary-bg-color);
            .card-title {
                color: #fff !important;
                margin-bottom: 0;
                font-size: 1.5rem;
                font-weight: 400;
                color: var(--primary-bg-color);
            }

        }
        .card_image {
            position: relative;
            max-height: calc(100vh - var(--header-heigh));

            .show_details {
                position: absolute;
                z-index: 1;
                right: 0;
                bottom: 0;
                border: none;
                width: 100%;
                height: 100%;
                padding: 0 !important;
                background-color: transparent;
                display: flex;
                justify-content: center;
                align-content: center;
                &:hover,
                &:focus-visible {
                    border: 8px solid rgba(255,255,255,.5);
                }
                &:focus-visible {
                    outline: none;
                }
                img {
                    position: absolute;
                    width: 20px;
                    height: 20px;
                    bottom: 20px;
                    right: 20px;
                    object-fit: contain;
                    opacity: 0.8;
                }

            }
            img {
                position: relative;
                height: inherit;
                object-fit: cover;
            }
        }
        @media (min-width: 576px) {
            .card_image {
                height: 200px;
            }
        }
        @media (min-width: 768px) {
            .card_image {
                height: 250px;
            }
        }
        @media (min-width: 1440px) {
            .card_image {
                height: 360px;
            }
        }

        .card-body {
            /* display: none; */
            font-weight: 300;
            color: inherit;
            p:last-child {
                margin-bottom: 0;
            }

        }
        .card-footer {
            background-color: transparent;
            padding-top: 0;
            border: none;
        }
    }






}



.pg_gallery {
    h1, h2, h3, h4 {
        padding: 0 1rem;
    }

    #gallery-container {
        padding: 0 1rem;
        .card-body {
            display: none;
        }
    }

    footer {
        position: fixed;
        bottom: 0;
        z-index: 1;
    }

    
    /* Modal */
    .modal {
        &.show {
            display: block;
            padding-left: 0px;
            min-height: 100vh;
            overflow: hidden;
        }
        h1, h2, h3, h4 {
            padding: 0;
        }
        button,
        a {
            &:focus {
                outline: 2px solid #005fcc; 
            }

            &:focus-visible {
                outline: 3px solid #6200da;
                outline-offset: 2px;
            }

            &:focus:not(:focus-visible) {
                outline: none;
            }
        }


        button.btn-close {
            align-self: flex-end;
            padding: 1rem;
            position: absolute;
            top: 6px;
            right: 6px;
            z-index: 1;
            border: 1px solid transparent;
            background-color: #ffffff80;
            &:hover {
                border-color: purple;
            }
        }


        .modal-body {
            display: flex;
            min-width: 100vw;
            min-height: auto;
            overflow: hidden;
            justify-content: center;
            background-color: #968C83; /* color: English Castle */
            position: relative;
            padding: 10px 30px 24px;

            .painting {
                width: 100%;
                height: inherit;
                img {
                    object-fit: contain;
                    width: inherit;
                    height: inherit;
                }
            }
        }

        .modal-footer {
            margin: 0;
            padding: 0;
            min-width: 100vw;
            min-height: auto;
            max-height: 30vw;
            display: flex;
            flex-direction: row;
            gap: 1rem;
            justify-content: space-between;
            background-color: #EDE8DC;
            * {
                margin: 0;
                padding: 0;
            }

            *:not(h2 .val) {
                font-size: .8125rem;
                font-weight: 300;
                line-height: 1.4;
            }
            .painting_details {
                min-width: 100vw;
                max-height: inherit;
                display: flex;
                flex-direction: column;
                gap: 1rem;
                justify-content: left;

                div {
                    padding: 12px;
                }

                div:last-child {
                    /* background-color: orange; */
                    min-width: 67vw;
                    min-height: inherit;
                    max-height: inherit;
                    overflow: hidden;
                    overflow-y: auto;
                }
                @media (min-width: 576px){
                    flex-direction: row;
                }
                h2, h3, h4 {
                    font-size: 1.1rem;
                    font-weight: 500;
                }
                p {
                    margin-bottom: .4rem;
                }
                .lbl {
                    font-weight: 500;
                }
                div:first-child{
                    min-width: 33%;
                }
                .data_basic {
                    /* background-color: yellow; */
                    > span:not(:last-child):after {
                        display: inline-block;
                        width: .6rem;
                        content: "|";
                        text-align: center;
                        /* background-color: red; */
                    }
                    .size {
                        white-space: nowrap;
                    }
                    .available {

    #modal-available {
        display: inline-flex;
        align-items: center;
        margin-top: .5rem;
        border: 1px solid #fff;
        border-radius: 5px;
        padding: .2rem .5rem;
        color: #fff;
        font-weight: 700;
        text-shadow: var(--text-shadow-1);
        background-color: var(--bckg-gold-fallback-color);
        background:var(--bckg-gold-gradient);
        &:hover {
            cursor: not-allowed;
        }
    }

	#modal-available:has(a) {
        border-color: var(--primary-bg-color);
        text-shadow: none;
        background-color: none;
        background: none;
		a {
			color: var(--primary-bg-color);
			font-weight: 600;
            text-decoration: none;
            display: flex;
            align-items: center;
            &:hover {
                cursor: pointer;
            }
            &:after {
                display: inline-block;
                width: 1rem;
                height: 1rem;
                margin-left: .2em;
                content: "";
                background-image: url("/assets/arrow-right-line-secondary-svgrepo-com.svg");
                background-size: contain;
                background-repeat: no-repeat;
                transition: all 0.3s ease;
            }
            &:hover:after {
                margin-left: .5rem;
            }
			&:before {
				width: .9rem;
				height: .9rem;
				margin-right: .2rem;
				background: url('/assets/email-svgrepo-com-black.svg') no-repeat center center;
				background-size: contain;
				content: '';
				display: inline-block;
			}
		}
	}

                    }
                    @media (min-width: 576px) {
                        display: flex;
                        flex-direction: column;
                        > span:after {
                            display: none !important;
                        }
                    }

                }
                .data_description {
                column-count: 1;
                max-width: calc(100% - 1rem);
                @media (min-width: 992px) {
                    column-count: 1;
                }

                }
                .data_style {
                    display: block;
                    border-top: 1px solid #eaeaea;
                    padding-top: 0.4rem;
                }
            }

        }

        @media (max-width: 576px) {
            .modal-body { max-height: 50vh;}
            .modal-footer { min-height: 50vh; max-height: 50vh;}
        }
        @media (min-width: 576px) {
        }
        @media (min-width: 992px) {
            .modal-body { min-height: 80vh;}
            .modal-footer {  min-height: 20vh; max-height: 20vh;}
        }
        @media (min-width: 1440px) {
        }

    }
}


.card {
    .social {
        display: flex;
        flex-direction: row;
        gap: 3rem;
        justify-content: center;
        align-content: center;
        height: 100%;

        a {
            text-decoration: none;
            margin: auto 0;
            transition: transform .2s;
            img {
                width: 2.5rem;
                height: 2.5rem;
                object-fit: contain;
            }
            &:hover {
                transform: scale(1.5);
            }
        }
    }
}



.pg_gallery,
.pg_collection {
    & .modal {
        & .modal-content {
            .gallery_settings {
                position: absolute;
                top:80px;
                right: 16px;
                z-index: 1;
                display: flex;
                flex-direction: column;
                gap: .5rem;
                align-items: center;

                .btn_toggle {
                    align-self: flex-end;
                    padding: 2px;
                    opacity: .5;
                    img {
                        width: 24px;
                        height: 24px;
                        filter: drop-shadow(1px 1px 0px rgba(0, 0, 0, .9));
                    }
                    &:hover {
                        opacity: 1;
                    }
                }

                .wall_picker_container {
                    margin-top: 5px;
                }

            }

            & .painting {
                position: relative;
                height: 100%;
                width: 100%;

                img {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%); 
                    max-width: 100%;
                    max-height: calc(100% - 40px);
                    width: auto;
                    height: auto;
                    box-sizing: border-box;
                    /* 1&2- shadow for fake floating frame, 3- shadow on the wall */
                    -webkit-box-shadow: 0px 0px 0px 5px #000000, 0px 0px 0px 10px #7B3F00, 0px 7px 17px 17px rgba(0,0,0,0.5), 0px 7px 17px 17px rgba(0,0,0,0.5); 
                    box-shadow: 0px 0px 0px 5px #000000, 0px 0px 0px 10px #401701, 0px 7px 17px 17px rgba(0,0,0,0.5), 0px 4px 12px 8px rgba(0,0,0,0.5);
                }
            }
        }
    }
}


.pg_gallery {
    .gallery-item.not_available {
        .card_image {
            button.show_details {
                &:after {
                    display: block;
                    width: 1rem;
                    height: 1rem;
                    position: absolute;
                    bottom: 20px;
                    left: 20px;
                    border: 1px solid transparent;
                    border-radius: 5px;
                    color: #fff;
                    content: "\00D7";  /* Unicode multiplication sign (×) */
                    font-size: 24px;
                    font-weight: 700;
                    line-height: .5;
                    text-shadow: var(--text-shadow-1);
                    opacity: .6;
                }
                &:hover:after,
                &:active:after,
                &:focus:after,
                &:focus-visible:after {
                    width: auto;
                    border-color: #ffffff80;
                    background-color: rgb(132, 0, 0);

                    background-color: var(--bckg-gold-fallback-color);
                    background: var(--bckg-gold-gradient);

                    font-size: inherit;
                    font-weight: 700;
                    font-size: 12px;
                    line-height: 1;
                    padding: 3px .5rem;
                    height: 20px;
                    content: "In private collection";
                    opacity: 1;
                }
            }

        }

    }
	.wall_picker_container {
		display: flex;
		align-items: center;
		gap: 1rem;
		border-radius: 5px;
		padding: 3px;
		background-color: rgba(255, 255, 255, .5);
		font-size: 0.8rem;
		font-weight: 600;
	}

}


