#collapsePub .template {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#collapsePub label {
    margin-top: 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

#collapsePub #description_label {
    width: 100%;
}

#collapsePub .form-group p {
    margin-top: 0;
}

#collapsePub .form-select {
    display: block;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    max-width: 95%;
}

#collapsePub a {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}
 

#collapsePub #pubGallery .card a {
    color: #212529;
    font-size: 18px;
}
#collapsePub a:hover {
    font-weight: 600;
}
#collapsePub #pubGallery .card a:hover {
    text-decoration: underline;
}

#collapsePub h5 {
    width: 100%;
    text-align: center;
}

.advertising a {
    font-size: 22px;
}

#collapsePub h6,
.advertising h6 {
    font-size: 18px;
}

#collapsePub .bi,
#pubEvent p {
    color: #fff;
}

#collapsePub #pubService,
#collapsePub #pubEvent,
#collapsePub #pubGallery,
#collapsePub #modifyService,
#collapsePub #modifyEvent,
#collapsePub #modifyGallery {
    display: none;
}

/* section pub */

#collapsePub .overview,
#collapsePub section {
    padding: 0.25rem;
    height: max-content;
}

#collapsePub section img {
    position: initial;
    object-fit: scale-down;
}

#collapsePub .title {
    flex-direction: column;
}

#collapsePub section .advertising {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
}

#pubService, 
#pubEvent {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
}

#pubEvent .imagePubEvent, #pubService .imagePubService {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
}

#pubGallery {
    display: flex;
    flex-direction: column;
    margin: 0!important;
    padding-bottom: 12px;
}

#pubGallery .row {
    justify-content: space-evenly;
}

#pubGallery .card {
    margin: 5px 15px;
    padding: 0;
}

#pubGallery .card img {
    border-radius: 15px 15px 0 0;
}

#pubGallery .card-body {
    padding: 0 0 1.25rem 0;
}

#pubEvent .hide {
    display: none;
}

#pubService p,
#pubEvent p,
#pubGallery p {
    font-size: 14px;
}
#pubService h5,
#pubEvent h5,
#pubGallery h5 {
    font-size: 16px;
}

#imgPubService, 
#imgPubEvent, 
#imgPubGallery {
    height: 140px;
    object-fit: cover;
}

@media screen and (max-width: 580px) {

    #collapsePub .overview {
        margin: 0;
    }

    #collapsePub section .advertising {
        flex-wrap: wrap;
    }

    #pubEvent .imagePubEvent, #pubService .imagePubService {
        width: 100%;
    }

    #pubService,
    #pubEvent,
    #pubGallery {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        align-content: center;
    }

    #pubGallery .row {
        flex-direction: column;
    }

    #pubGallery .card {
        margin: 5px 0;
    }

    #imgPubService, 
    #imgPubEvent, 
    #imgPubGallery {
        height: 125px;
    }
}