/*
Theme Name:   R House Child
Theme URI:    https://rhouse.example.com/
Description:  Divi child theme for R House. Renames the Projects post type to Rooms, adds Properties, rent and availability, and a filterable rooms listing.
Author:       Takkall Design
Author URI:   https://takkall.co.uk/
Template:     Divi
Version:      1.1.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  rhouse-child
*/

.rhouse-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
}
.rhouse-gallery img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	border-radius: 4px;
}


/* R House – room card titles always take up two lines (desktop + tablet) */
.rhouse-card-title {
    --rh-title-lh: 1.1em;   /* line spacing: change this one value to adjust */
}

.rhouse-card-title :is(h1, h2, h3, h4, h5, h6),
.rhouse-card-title :is(h1, h2, h3, h4, h5, h6) a {
    line-height: var(--rh-title-lh);
}

.rhouse-card-title :is(h1, h2, h3, h4, h5, h6) {
    margin: 0 0 10px;          /* keeps your current gap above the photo */
    padding-bottom: 0;         /* replaces Divi's default heading padding */
    min-height: calc(2 * var(--rh-title-lh));
}

/* Phones: one column, so no space needs reserving */
@media (max-width: 767px) {
    .rhouse-card-title :is(h1, h2, h3, h4, h5, h6) {
        min-height: 0;
    }
}

@media (max-width: 980px) {
  .rh-header-row { position: relative; }

  .rh-menu .et_pb_menu__wrap,
  .rh-menu .et_pb_menu_inner_container,
  .rh-menu .et_mobile_nav_menu { position: static; }

  .rh-menu .et_mobile_menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 24px;
  }

  .rh-menu .et_mobile_menu li a {
    white-space: normal;
  }
}
