#portfolio-gallery {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.left-control, .right-control {
    width: 10%;
    font-size: 3em;
    cursor: pointer;
    z-index: 10;
}
.disabled {
    pointer-events: none;
    color: #282299;
}

@media (min-width: 480px) {
    .left-control, .right-control {
        width: 10%;
    }
}

.gallery-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-slide-selector {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    
    .slide-selector-control {
        font-size: 2em;
        color: #282299;
        cursor: pointer;
        margin: 0 10px;
    }

    .slide-selector {
        margin: 0px 10px;
        cursor: pointer;
        transition: all 0.7s ease;
        stroke: #f8f7f2;
        height: 20px;
        width: 60px;
    }

    .active {
        stroke: #CE7274;
    }

    .inactive {
        stroke: #f8f7f2;
    }
}

.gallery-items {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 16px;
        row-gap: 20px;
        align-items: start;
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.gallery-item {
    text-align: center;
        width: 100%;
    transition: all 0.5s ease;
    z-index: 1;
        display: grid;
        grid-template-rows: 185px 1.5em 4.8em 1.5em;
        align-items: center;
        justify-items: center;

    h3 {
      font-style: italic;
            width: 100%;
            height: 4.8em;
            margin-top: 10px;
      font-size: 0.9em;
      line-height: 1.6em;
            overflow: hidden;
    }

    h4 {
                width: 100%;
        font-size: 0.5em;
                margin: 0;
                height: 1.5em;
        line-height: 1.5em;
                overflow: hidden;
    }

    p {
                width: 100%;
                height: 1.5em;
        line-height: 1.5em;
                margin: 0;
                overflow: hidden;
    }

    .italic-font {
        font-style: italic;
    }

    .normal-font {
        font-style: normal;
    }
}

@media (max-width: 480px) {
    .gallery-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hidden {
    display: none;
}

.gallery-item img {
    max-width: 100%;
    max-height: 185px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .gallery-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}