.baner-section, .portfolio-section{ width: auto; height: auto; } /*Banner section*/ .baner-btn a.wp-block-button__link:hover{ background-color: #002155 !important; } /*Portfolio section*/ .portfolio-section h2{ font-weight: 600; } .portfolio-section h2:after{ content: ''; border: 1px solid #ff5e15; display: block; width: 20%; margin: 5px auto 30px; } .portfolio-section .outer-box-content:hover { box-shadow: 0 0 15px 5px #ccc; } .portfolio-section .outer-box-content{ background: #000; overflow: hidden; position: relative; } .portfolio-section .outer-box-content img { width: 100%; height: auto; transform: scale(1.5); transform-origin: right center; transition: all 0.7s ease 0s; } .outer-box-content .box-inner-content { background: hsl(0deg 0% 100%); text-align: center; width: 100%; padding: 15px 20px; opacity: 0; transform-origin: left center; transform: translateX(-100%) translateY(-50%) scale(0); position: absolute; left: 50%; bottom: -50px; transition: all 0.7s ease 0s; } .outer-box-content:hover .box-inner-content { opacity: 1; transform: translateX(-50%) translateY(-50%) scale(1); } @media screen and (max-width: 768px) and (min-width: 576px){ .baner-section .wp-block-column.baner-cont:nth-child(2) { flex-basis: 100% !important; margin-left: 0 !important; } }