.allrooms-section{ display: flex; flex-wrap: wrap; justify-content: space-around; margin-bottom: 20px; margin-top: 30px; justify-content: center; align-items: center; } .room-heading { text-align: center; margin-top: 50px; font-size: 2.5em; width: 50%; margin: auto; -moz-box-shadow: 0 8px 6px -6px var(--yellow); -webkit-box-shadow: 0 8px 6px -6px var(--yellow); box-shadow: 0 8px 6px -6px var(--yellow); } .allrooms-section article { margin-bottom: 40px; margin: 20px; padding: 20px; flex: 0 1 40%; -moz-box-shadow: 0 8px 6px -6px var(--yellow); -webkit-box-shadow: 0 8px 6px -6px var(--yellow); box-shadow: 0 8px 6px -6px var(--yellow); text-align: center; } .heading2 { text-align: center; font-size: 1.5em; margin-top: 20px; } .article-img-wrapper { width: 400px; height: 400px; display: flex; align-items: center; justify-content: center; margin: auto; } .article-img-wrapper img { height: 90%; width: 90%; object-fit: cover; display: flex; align-items: center; justify-content: center; } .btn-details{ background-color: var(--white); color: var(--black); padding: 1px; border: none; width: 120px; height: 40px; display: inline-block; border-radius: 8px; transition: all 0.3s; display: flex; align-items: center; justify-content: center; align-items: center; text-align: center; margin: 0 auto; margin-bottom: 20px; } .btn-details:hover{ background-color: var(--yellow); } /* style for single post for room and suite ....*/ .single-post{ max-width: 900px; margin: 0 auto; display: block; } .single-post img{ width: 50%; margin: 0 auto; display: block; } .single-post .singel-heading{ text-align: center; margin-bottom: 50px; width: 50%; margin: auto; font-size: 2em; -moz-box-shadow: 0 8px 6px -6px var(--yellow); -webkit-box-shadow: 0 8px 6px -6px var(--yellow); box-shadow: 0 8px 6px -6px var(--yellow); } .single-post .singel-para{ text-align: left; font-size: 1.3em; } @media only screen and (max-width: 900px) { .room-heading { font-size: 1.5em; margin-top: 90px; } .allrooms-section .heading2 { font-size: 1.2em; } .allrooms-section article { flex: 0 1 80%; } } @media only screen and (max-width: 400px){ .article-img-wrapper { width: 100%; height: auto; } }