@import '../../../../assets/scss/abstracts/variables';
@import '../../../../assets/scss/abstracts/mixins';

@property --color-rdg-best-pph-sites-sidebar-title {syntax: "<color>";inherits: true;initial-value: #111111;}
@property --color-rdg-best-pph-sites-sidebar-line-border {syntax: "<color>";inherits: true;initial-value: #CCC;}
@property --color-rdg-best-pph-sites-sidebar-description {syntax: "<color>";inherits: true;initial-value: #111111;}

.rdg-blocks .rdg-best-pph-sites {
    .content {
        width: 100%;
        display: flex;
        flex-direction: column;

        .sidebar-title {
            margin-bottom: 1rem;
            color: var(--color-rdg-best-pph-sites-sidebar-title);
        }

        .sidebar-pphs {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: .6rem;

            .sidebar-pph {
                width: 100%;
                display: flex;
                flex-direction: column;
                text-align: center;
                align-items: center;
                border-bottom: 1px solid var(--color-rdg-best-pph-sites-sidebar-line-border);

                &:last-of-type {
                    border-bottom: none;
                }
    
                .sidebar-image {
                    img {
                        max-width: 17rem;
                        max-height: 6rem;

                        @media (max-width: $breakpoint-lg) {
                            & {
                                max-width: 15rem;
                                max-height: 5rem;
                            }
                        }

                        @media (max-width: $breakpoint-md) {
                            & {
                                max-width: 18rem;
                                max-height: 7rem;
                            }
                        }

                        @media (max-width: 400px) {
                            & {
                                max-width: 14rem;
                                max-height: 5rem;
                            }
                        }
                    }
                }

                .sidebar-description {
                    width: 10rem;
                    margin-bottom: .5rem;
                    color: var(--color-rdg-best-pph-sites-sidebar-description);
                }

                .sidebar-link {
                    margin-bottom: .5rem;
                }
            }
        }
    }
}
