.page-content {
height: auto;
min-height: 67vh !important;
/*background-color: #f8f8f8;*/
  background-image: url('bg_sec-first.jpg');
background-repeat: no-repeat;
background-position: center -40px; /* center horizontally & vertically */
background-size: cover; /* scales proportionally to cover entire div */
padding: 0;
margin: 0;
border-top: 1px dotted #ed3336;
border-bottom: 1px solid #cfcfcf;
}

.page-main-content {
	background: #fff;
	border-radius: 10px;
	padding: 10px;
	margin: 0 auto;
	margin-bottom: 2rem;
	box-shadow: 3px 5px 8px rgba(0,0,0,0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid #efefef;
	padding: 2rem;
}
.page-main-content p{
	margin-bottom: 1rem;
}

/* VIEW pager */
nav.pager {
  position: relative;
margin: 1rem auto;
}

.pager ul.pager__items {
  position: relative;
  margin: 0;
  padding: 1rem 0;
  list-style: none;
  list-style-type: none;
}

.pager__items {
  clear: both;
  text-align: center;
}

.pager__item {
  display: inline-block;
}

.pager__item a {
  padding: 8px 12px;
  border-radius: 4px;
color: #f0556c;
  background-color: #e9e9e9;
}

.pager__item a:hover,
.pager__item.is-active a {
  background-color: #f0556c;
  color: #ffffff;
}


/*tiles*/
.member-institutions-page .tiles,
.view-views-country-profiles .tiles,
.node--type-photo-gallery .field-items, 
.photogallery .tiles,
.pressrelease .tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr); /* 3 per row */
	gap: 30px; /* space between tiles */
	padding: 0;
	margin: 2rem auto;
	text-align: center;
}

/*tile*/
.member-institutions-page .tile,
.countryprofiles .tile,
.node--type-photo-gallery .field-item img, 
.photogallery .tile,
.pressrelease .tile {
	background: #ffffff;
	width: 100%;
	margin: 0 auto;
	padding: 10px;
	border: 1px solid #e4e4e4;
	box-shadow: 3px 5px 8px #acacac;
	text-align: center; 
	border-radius: 0 !important;
	overflow: hidden;
}

.countryprofiles .tile > img{
	margin: 0 auto;
	text-align: center; 
}

.countryprofiles .flag img,
.photogallery .tile img {
  width: 300px;
  height: auto;
margin: 0 auto;
text-align: center;
  object-fit: cover;
 display: block;
border: 1px solid #8e8e8e;
}


.photogallery .caption{
	margin: 0;
	padding: 20px 0;
	text-align: center;
}

/* Member Institutions */

.member-institutions-page .tiles {
	grid-template-columns: repeat(3, 1fr); /* 3 per row */
	display: grid;
	gap: 30px; /* space between tiles */
	padding: 0;
	margin: 2rem auto;
	text-align: center;
}

/*tile*/
.member-institutions-page .tile {
	background: #ffffff;
	width: 100%;
	margin: 0 auto;
	padding: 10px;
	border: 1px solid #e4e4e4;
	box-shadow: 3px 5px 8px #acacac;
	text-align: center; 
	border-radius: 0 !important;
	overflow: hidden;
}


/* Country Profiles*/

.countryprofiles .country,
.countryprofiles .profile-pdf{
	margin: 10px 0;
	padding: 0;
}

.countryprofiles .flag {
	margin: 0px;
	padding: 0px;
}

.countryprofiles .flag img {
	width: 100%;
	margin: 0 auto;
	margin-bottom: 25px;
	padding: 0px;
	height: auto;
	border: 1px solid #e4e4e4;
}

/* Annual Meetings*/
.views-field-field-am-year {
	text-align: center;
}
.views-field-field-country-flag {
	text-align: center;
	display: flex;
 justify-content: center;
}

/*Press Releases */
.pressrelease .tiles{
}

.member-institutions-page .tile,
.pressrelease .tile {
	padding: 0;
	border-radius: 8px !important;
	overflow: hidden;
}

.member-institutions-page .member-institutions-page-url,
.pressrelease .member_pressrelease_url{
	display: block;
	width: 100%;
	padding: 30px 10px;
	border-radius: 8px !important;
	/*
	border: 1px solid #fc124d;
	*/
}

.member-institutions-page .member-institutions-page-url img,
.pressrelease .member_pressrelease_url img{
	margin: 0 auto;
	text-align: center; 
}

.pressrelease p strong{
	color: #f0556c;
}

/* Footer */

.site-footer {
  padding: 20px 40px;
  text-align: center;
  font-size: 0.9rem;
 background-color: #dcdcdc;
border-bottom: 5px solid #c7c7c7;
}


.site-footer nav ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
 list-style: none;
  display: flex;
 justify-content: center;
}

.site-footer li {
  padding: 0.5rem 1rem;
 border-right: 1px solid #ccc;
  text-align: center;
}

.site-footer li a {
 color: #f0556c;
font-weight: 600;
letter-spacing: 1px;
}

.site-footer li:last-child {
  border-right: none;
}



@media (max-width: 768px) {
	.page-content {
	    background-position: center top;
	  background-position: center -70px; /* center horizontally & vertically */
	  min-height: 80vh !important;
	  }

	.page-main-content {
	padding: 5px;
}
  .photogallery .tiles {
    grid-template-columns: repeat(2, 1fr); /* 3 per row */
  }
}
