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

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

        .sidebar-title {
            margin-bottom: 1rem;
            color: var(--color-rdg-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-sidebar-line);

                &: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-sidebar-description);
                }

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

.acf-block-preview {
    .rdg-best-pph-sites {
        .sidebar-pphs {
            .sidebar-pph {
                .sidebar-link {
                    a {
                        text-decoration: none;
                    }
                }
            }
        }
    }
}
