/* Basic Formating */
figcaption {
    line-height: 24px;
    text-align: center;
}

.therapy-heading {
    padding-bottom: 13px;
}

.title {
    font-style: italic;
    margin-bottom: 8px;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 26px;
}

h5 {
    font-size: 18px;
}

figcaption h4 {
    margin-bottom: 4px;
}

.experience-p {
    font-size: 18px;
}

/* Custom Person Grid/Format */
.custom-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.occupational-side-by-side {
    display: flex;
    flex-flow: row nowrap;
}

.ot-photo-spacing,
.ot-list-spacing {
    width: 50%;
}

.occupational-side-by-side img {
    /* margin: 0px 5vw 180px 2vw; */
    width: 93%;
    height: 80%;
}

button {
    font-family: "Lato", sans-serif;
}

/* What Is */
.what-is p {
    font-size: 17px;
    line-height: 24px;
}

.what-is ul {
    font-size: 18px;
    margin-left: 2.3vw;
}

/* CUSTOM LIST FORMAT */
li {
    font-size: 18px;
    line-height: 28px;
}

.lists {
    margin: 40px 40px;
    display: flex;
    flex-flow: row nowrap;
}

.lists section {
    width: 50%;
    position: relative;
}

.ot-training{
    min-height: 50vh;
}

/* IMG */
.therapy-side-img{
    width: 70%;
    height: auto;
    max-height: 60vh;
    margin: auto;
    position: absolute;
    top: 0; right: 0;
    bottom: 0; left: 0;
}

.therapist-profile{
    position: relative;
}

.pt-individual-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

/* for occupational group photo because it is smaller */
.therapy-img-ot {
    width: 65%;
    margin: 0 auto;
}

/* Settings for Show More/Show Less */

.open {
    overflow: hidden;
}

/* When content is shrunk, apply the max-height */
.remove {
    max-height: 117px;
}

/* When content is expanded, remove the max-height */
.open:not(.remove) {
    max-height: none;
}

.show-button {
    margin: 0 auto;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    color: #0000EE;
    font-size: 17px;
}

.show-button:hover {
    color: #0000ee7f;
}

/* MOBILE */
@media (max-width: 1250px) {
    .lists {
        flex-flow: column;
    }
    .lists-reverse {
        flex-direction: column-reverse;
    }

    .therapy-side-img{
        width: 35vw;
        height: 55vh;
        margin: auto;
        position: relative;
    }

    .ot-training{
        min-height: fit-content;
    }

    .lists section {
        width: 100%;
    }

    .custom-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ot-therapy-side-img{
        width:75%
    }
}

@media (max-width: 1000px) {
    .what-is ul {
        margin-left: 7vw;
    }

    .therapy-img-ot {
        width: 80%;
    }

    .ot-therapy-side-img{
        width:90%
    }
}

@media (max-width: 800px) {
    .custom-profile-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 13px;
    }

    .therapy-side-img{
        width: 50vw;
    }

    .ot-therapy-side-img{
        width:100%
    }
}

@media (max-width: 700px) {
    .what-is ul {
        margin-left: 9vw;
    }
}

@media (max-width: 600px) {
    .slideshow-medium {
        position: relative; /* keep this */
        width: 100%;        /* allow full width */
        height: 40vh;       /* adjust height dynamically */
    }

    #slideshow img {
        width: 100%;
        height: 40vh;
        object-fit: contain; /* or cover, depending on your style */
    }

    .therapy-side-img{
        width: 50vw;
        height: 45vh;
    }

    .ot-therapy-side-img{
        width:100%;
        height: 90%;
    }
}

@media (max-width: 500px) {
    .container {
        width: 95%;
    }

    .therapy-img-ot {
        width: 95%;
    }

    .ot-therapy-side-img{
        width:100%
    }
}