/* Sekcja: photo_block_more - pełny CSS sekcji (zapis zagnieżdżony).
   Dawne zmienne SCSS: $element1-color/$secondary-text/$light-bg2 -> var(--...). */

.photo-block-more {
    .buttons {
        .btn-primary {
            color: var(--element1-btn1-text);
            background-color: var(--element1-btn1-bg);
            border-color: var(--element1-btn1-border);

            &:hover {
                color: var(--element1-btn1-text-hover) !important;
                background-color: var(--element1-btn1-bg-hover) !important;
                border-color: var(--element1-btn1-border-hover) !important;
            }
        }

        .btn-secondary {
            color: var(--element1-btn2-text);
            background-color: var(--element1-btn2-bg);
            border-color: var(--element1-btn2-border);

            &:hover {
                color: var(--element1-btn2-text-hover) !important;
                background-color: var(--element1-btn2-bg-hover) !important;
                border-color: var(--element1-btn2-border-hover) !important;
            }
        }
    }

    &.reverse {
        .wrapper {
            flex-direction: row-reverse;
        }
    }

    .photo {
        .image {
            height: 100%;
        }

        img {
            width: 100%;
            object-fit: cover;
            border-radius: var(--image-border-radius);
        }
    }

    .text {
        padding: 60px 50px;

        > h3 {
            font-size: 3.3125rem;
            font-weight: 600;
            color: var(--element1-title);
        }

        > p {
            font-size: 1.25rem;
            font-weight: 500;
            color: var(--element1-text);
        }
    }

    .slide-list {
        margin-left: auto;
        margin-right: auto;
        margin-top: 30px;

        .one-item {
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 15px;
            padding: 2px;

            .title {
                font-weight: 400;
                font-size: 1.5rem;
                line-height: 31px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                cursor: pointer;
                position: relative;
                padding: 14px;
                padding-left: 30px;
                border: none;
                width: 100%;
                border-radius: 8px;
                text-transform: initial;
                text-align: left;
                white-space: normal;
                background-color: var(--light-bg2);

                .roll {
                    transition: 0.2s;
                    -webkit-transition: 0.2s;
                    width: 40px;
                    height: 40px;
                    border-radius: 5px;
                    flex: none;
                    order: 1;
                    flex-grow: 0;
                    position: relative;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin-left: 15px;

                    .caret {
                        transition: 0.3s;
                        -webkit-transition: 0.3s;
                        width: 20px;
                        height: 20px;
                        background-image: url(/img/faq-caret.svg);
                        background-size: contain;
                        background-repeat: no-repeat;
                    }

                    &.open {
                        .caret {
                            transform: rotateX(180deg);
                        }
                    }
                }

                &:hover,
                &:focus {
                    transform: none;
                    background-color: var(--element1-color);
                    color: var(--secondary-text);
                }
            }

            .item-body {
                display: none;
                padding: 20px;
                padding-left: 30px;
            }
        }
    }
}

@media (max-width: 575.5px) {
    .photo-block-more {
        .photo {
            margin-bottom: 30px;

            .image {
                display: flex;
                justify-content: center;
            }

            img {
                width: inherit;
                max-width: calc(100% - 30px);
            }
        }

        .text {
            padding: 0px 30px;

            h3 {
                font-size: 1.5625rem;

                &:first-child {
                    margin-top: 0;
                }
            }

            p {
                font-size: 1.125rem;
            }
        }

        .slide-list {
            .one-item {
                margin-bottom: 10px;

                .title {
                    font-size: 1.125rem;
                    line-height: 20px;
                    padding: 10px 15px;

                    .roll {
                        width: 32px;
                        height: 32px;
                    }
                }

                .item-body {
                    padding: 15px 15px 10px 15px;
                }
            }
        }
    }
}

@media (min-width: 576px) and (max-width: 767.5px) {
    .photo-block-more {
        .photo {
            margin-bottom: 30px;

            .image {
                display: flex;
                justify-content: center;
            }

            img {
                width: inherit;
                max-width: calc(100% - 30px);
            }
        }

        .text {
            padding: 0px 30px;

            h3 {
                font-size: 2.1875rem;

                &:first-child {
                    margin-top: 0;
                }
            }
        }

        .slide-list {
            .one-item {
                margin-bottom: 15px;

                .title {
                    font-size: 1.25rem;
                    line-height: 30px;
                    padding: 10px 15px;

                    .roll {
                        width: 36px;
                        height: 36px;
                    }
                }

                .item-body {
                    padding: 15px 15px 10px 15px;
                }
            }
        }
    }
}

@media (min-width: 768px) and (max-width: 991.5px) {
    .photo-block-more {
        .photo {
            margin-bottom: 30px;

            .image {
                display: flex;
                justify-content: center;
            }

            img {
                width: auto;
                max-height: 500px;
            }
        }

        .text {
            padding: 0px 30px;

            h3 {
                font-size: 2.1875rem;

                &:first-child {
                    margin-top: 0;
                }
            }
        }

        .slide-list {
            .one-item {
                .title {
                    padding: 10px 20px;
                }

                .item-body {
                    padding: 15px 20px 15px 20px;
                }
            }
        }
    }
}

@media (min-width: 992px) and (max-width: 1199.5px) {
    .photo-block-more {
        .text {
            padding: 0px 30px;

            h3 {
                font-size: 2.1875rem;

                &:first-child {
                    margin-top: 0;
                }
            }
        }

        .slide-list {
            .one-item {
                .title {
                    padding: 10px 20px;
                }

                .item-body {
                    padding: 15px 20px 15px 20px;
                }
            }
        }
    }
}

@media (min-width: 1200px) and (max-width: 1579.5px) {
    .photo-block-more {
        .text {
            padding: 0px 30px;

            h3 {
                font-size: 2.8125rem;

                &:first-child {
                    margin-top: 0;
                }
            }
        }

        .slide-list {
            .one-item {
                padding: 12px 20px;

                .title {
                    font-size: 1.375rem;
                }
            }
        }
    }
}
