.series a {
    text-decoration: none;
    display: block;
    position: relative;
    z-index: 999;
}

.series .checkbox {
    position: relative;
    z-index: 999;
}
.series > a {
    height: 400px;
}
.series img.attachment-medium.wp-post-image {
    width: 107%;
    height: 105%;
    translate: -3% -2%;
}
.series a[href*="/security-doors/lisbon/"] img.attachment-medium.wp-post-image {
    width: 102%;
    height: 103%;
    translate: -2% 0%;
}
.col-xs-4.col-sm-3.col-md-3.series {
    height: 330px;
    padding-bottom: 30px;
    margin-bottom: 15px;
}

.series.coatings > a {
    pointer-events: auto;
}

form .col-xs-4.col-sm-3.col-md-3.series {
    margin: 15px;
    margin-bottom: 60px;
    padding: 0;
    position: relative;
    width: 200px;
    height: unset;
    padding-bottom: 0;
    border-radius: 5px;
    overflow: hidden;
    max-height: 620px;
}

form .series .checkbox {
    /*    position: absolute;*/
    bottom: 0;
    width: 100%;
    z-index: 999;
    margin: 0;
    padding: 10px;
    background: white;
    margin-top: 5px;
}

form .series .checkbox input {
    float: unset;
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    z-index: 999;
    margin: 0;
    transform: translateY(-50%);
    right: 5px;
}

.col-xs-4.col-sm-3.col-md-3.series {
    display: none;
}

form .col-xs-4.col-sm-3.col-md-3.series {
    display: block;
}

.checkbox label {
    cursor: pointer;
    font-family: "Catamaran", "Trebuchet MS", sans-serif;
    color: rgb(28, 79, 156) !important;
    font-weight: 900;
    margin: 0px auto;
    text-align: left;
    font-size: 16px;
    display: block;
    z-index: 9999;
}

.door-output {
    height: 0px;
    overflow: hidden;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* GRAVITY FORMS DYNAMIC DOORS */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.series-form__container h3 {
    text-align: center;
    line-height: 1.2;
    color: #337ab7;
}

#gform-wrapper .gform_wrapper .dynamic-series-doors .gfield_checkbox {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

#gform-wrapper .gform_wrapper .dynamic-series-doors .gfield_checkbox .gchoice {
    flex: 0 0 calc(20% - 20px); /* 5 columns  */
    max-width: calc(20% - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

#gform-wrapper .gform_wrapper .dynamic-series-doors .door-choice-wrapper {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

#gform-wrapper .gform_wrapper .dynamic-series-doors .door-choice-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 2px solid transparent;
    max-height: 350px;
}

#gform-wrapper .gform_wrapper .dynamic-series-doors .series-title {
    font-size: 16px;
    font-weight: 600;
    color: #303030;
    display: block;
    margin-top: 5px;
}

#gform-wrapper .gform_wrapper .dynamic-series-doors .gchoice input[type="checkbox"] {
    order: 2;
    margin-top: 10px;
    cursor: pointer;
    transform: scale(1.3);
}

#gform-wrapper .gform_wrapper .dynamic-series-doors .gchoice label {
    order: 1;
    margin-bottom: 0;
    cursor: pointer;
    max-height: none;
}

@media (max-width: 768px) {
    #gform-wrapper .gform_wrapper .dynamic-series-doors .gfield_checkbox .gchoice {
        flex: 0 0 calc(25% - 15px); /* 4 columns */
        max-width: calc(25% - 15px);
    }
}

@media (max-width: 500px) {
    #gform-wrapper .gform_wrapper .dynamic-series-doors .gfield_checkbox .gchoice {
        flex: 0 0 calc(33.333% - 14px); /* 3 columns */
        max-width: calc(33.333% - 14px);
    }
}

@media (max-width: 400px) {
    #gform-wrapper .gform_wrapper .dynamic-series-doors .gfield_checkbox .gchoice {
        flex: 0 0 calc(50% - 10px); /* 2 columns */
        max-width: calc(50% - 10px);
    }
}

@media only screen and (max-width: 1200px) {
    .col-xs-4.col-sm-3.col-md-3.series {
        height: 280px;
        max-height: 300px;
        min-height: 260px;
    }
}

@media only screen and (max-width: 991px) {
    .col-xs-4.col-sm-3.col-md-3.series {
        height: 300px;
        max-height: 325px;
        min-height: 280px;
    }
}

@media only screen and (max-width: 768px) {
    h2.series-title {
        margin: 10px auto;
    }

    .col-xs-4.col-sm-3.col-md-3.series {
        min-height: 240px;
        max-height: 440px;
        height: auto;
        padding-bottom: 15px;
        margin-bottom: 10px;
    }
}

@media only screen and (max-width: 480px) {
    .col-xs-4.col-sm-3.col-md-3.series {
        min-height: 230px;
        max-height: 280px;
        height: auto;
        padding-bottom: 15px;
        margin-bottom: 0px;
    }
}
