/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* select css */
.select-wrap ul.select2-selection__rendered {
  position: relative;
}
.select-wrap ul.select2-selection__rendered li {
  background-color: #9a3324 !important;
  color: #fff !important;
  border: none !important;
}
.select-wrap ul.select2-selection__rendered li.select2-search {
  display: none;
}
.select-wrap ul.select2-selection__rendered li span {
  color: #fff !important;
}
.select-wrap span.select2-selection {
  height: 50px;
  border-radius: 0;
  border: 1px solid #cec9c0;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  overflow-y: auto;
}
.select-wrap span.select2-selection::-webkit-scrollbar {
  display: none;
}
.select-wrap .select2-container--focus span.select2-selection {
  border-color: #9a3324;
}
body.logged-in span.select2-dropdown.select2-dropdown--below {
  top: 32px;
}
body span.select2-dropdown.select2-dropdown--below,
body span.select2-dropdown.select2-dropdown--above {
  background-color: #111;
  top: 0px;
}
span.select2-dropdown.select2-dropdown--above {
  top: 0px;
}
body.logged-in span.select2-dropdown.select2-dropdown--above {
  top: 46px;
}
body .select2-container--default .select2-results > .select2-results__options {
  max-height: 100%;
}
body
  .select2-container--default
  .select2-results__option--highlighted[aria-selected],
.select2-container--default
  .select2-results__option--highlighted[data-selected] {
  background-color: #9a3324;
  color: #fff;
}
body .select2-container--default .select2-results__option[aria-selected='true'],
.select2-container--default .select2-results__option[data-selected='true'] {
  background-color: #9a3324;
  color: #fff;
}
body
  .select2-container--default
  .select2-results
  > .select2-results__options
  li {
  padding-left: 40px;
  height: 40px;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
}
body
  .select2-container--default
  .select2-results
  > .select2-results__options
  li::before {
  position: absolute;
  content: '';
  left: 10px;
  top: 46%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 1px solid;
}
body
  .select2-container--default
  .select2-results
  > .select2-results__options
  li::after {
  position: absolute;
  content: '\2713';
  left: 15px;
  top: 46%;
  transform: translateY(-50%);
  opacity: 0;
}
body
  .select2-container--default
  .select2-results__option[aria-selected='true']::after {
  opacity: 1 !important;
}
.select-wrap span.select2.select2-container.select2-container--default {
  min-width: inherit !important;
  width: 100% !important;
  position: relative;
}
.select-wrap span.select2.select2-container.select2-container--default::before {
  position: absolute;
  content: '';
  background-image: url('data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KDTwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIFRyYW5zZm9ybWVkIGJ5OiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4KPHN2ZyBmaWxsPSIjMDAwMDAwIiB3aWR0aD0iODAwcHgiIGhlaWdodD0iODAwcHgiIHZpZXdCb3g9Ii04LjUgMCAzMiAzMiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgoNPGcgaWQ9IlNWR1JlcG9fYmdDYXJyaWVyIiBzdHJva2Utd2lkdGg9IjAiLz4KDTxnIGlkPSJTVkdSZXBvX3RyYWNlckNhcnJpZXIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgoNPGcgaWQ9IlNWR1JlcG9faWNvbkNhcnJpZXIiPiA8dGl0bGU+YW5nbGUtZG93bjwvdGl0bGU+IDxwYXRoIGQ9Ik03LjI4IDIwLjA0MGMtMC4yNCAwLTAuNDQtMC4wODAtMC42LTAuMjRsLTYuNDQtNi40NGMtMC4zMi0wLjMyLTAuMzItMC44NCAwLTEuMiAwLjMyLTAuMzIgMC44NC0wLjMyIDEuMiAwbDUuODQgNS44NCA1Ljg0LTUuODRjMC4zMi0wLjMyIDAuODQtMC4zMiAxLjIgMCAwLjMyIDAuMzIgMC4zMiAwLjg0IDAgMS4ybC02LjQ0IDYuNDRjLTAuMTYgMC4xNi0wLjQgMC4yNC0wLjYgMC4yNHoiLz4gPC9nPgoNPC9zdmc+');
  width: 25px;
  height: 25px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 9;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* select css */

/* Portfolio */
.portfolio-filter {
  width: 100%;
  max-width: 1170px;
  margin: auto;
  padding: 0 15px;
}
.filter-form {
  margin-bottom: 50px;
}
.filter-form .top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  border-top: 1px solid #cec9c0;
  border-bottom: 1px solid #cec9c0;
  padding: 20px 0;
  margin-bottom: 20px;
}
.portfolio-filter .top label {
  font-size: 16px;
  color: #111;
}
.filter-form .bottom {
  display: flex;
  justify-content: flex-end;
}
.filter-form .bottom button {
  padding: 12px 20px;
  border: 1px solid #cec9c0;
  margin-left: 30px;
  outline: none;
  background-color: #fff;
  transition: all 0.3s ease-in;
  color: #111;
  font-size: 18px;
}
.filter-form .bottom button:hover {
  background-color: #9a3324 !important;
  color: #fff !important;
  border-color: #9a3324 !important;
}
.filter-form .bottom button[type='submit'] {
  background-color: #111;
  color: #fff;
}
.portfolio-filter .top select {
  margin: 0;
  border: 1px solid #cec9c0;
}
.portfolio-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px; /* Added space between portfolio items */
  position: relative;
  padding: 15px; /* Added 15px padding around the entire portfolio gallery */
}
.portfolio-content .portfolio-item {
  position: relative;
}
.portfolio-content .portfolio-item .portfolio-thumbnail {
  width: 100%;
  padding-bottom: 66.66%;
  position: relative;
  display: flex;
  overflow: hidden;
}
.portfolio-content .portfolio-item .portfolio-thumbnail img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.2s ease-in;
}
.portfolio-content .portfolio-item .hover-details {
  position: absolute;
  top: 0;
  left: 0;
  text-align: center;
  /* transition: all 0.3s ease-in; */
  transition: background-color 200ms linear;
  opacity: 0;
  visibility: hidden;
  z-index: 9;
  text-transform: uppercase;
  background-color: transparent;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-content .portfolio-item:hover .hover-details {
  opacity: 1;
  visibility: visible;
  background-color: rgba(28, 28, 28, 0.9); /* Adjusted hover transparency */
}
.portfolio-content .portfolio-item .hover-details .inner {
  position: relative;
  top: 20px;
  transition: all 0.3s ease-in;
}
.portfolio-content .portfolio-item:hover .hover-details .inner {
  top: 0;
}
.portfolio-content .portfolio-item .hover-details h3.title {
  font-size: 14px;
  color: #fff;
  line-height: 1;
  margin: 25px 0 10px 0;
  font-weight: 700; /* Increased font weight to make the title bolder */
  letter-spacing: 1px; /* Added letter spacing for better readability */
}

.portfolio-content .portfolio-item .hover-details h4.designation {
  font-size: 11px; /* Decreased font size to differentiate from the title */
  line-height: 1.2; /* Increased line height for better readability */
  margin: 0;
  color: #fff;
  font-weight: 400; /* Made the designation text lighter */
  letter-spacing: 0.5px; /* Reduced letter spacing compared to the title */
}
.portfolio-content .portfolio-item .hover-details .bar {
  background-color: #9a3324;
  width: 18%;
  height: 1px;
  margin: auto;
}
.portfolio-content .portfolio-item:hover .portfolio-thumbnail img {
  transform: scale(1.05);
}
/* Portfolio */

/* Staff */
.staff-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  position: relative;
}
.staff-content p.not-found,
.portfolio-content p.not-found {
  font-size: 18px;
  color: #111;
  display: block;
  position: absolute;
  width: 100%;
  text-align: center;
}
.staff-content .staff-thumbnail {
  width: 100%;
  height: 204px;
  overflow: hidden;
  background-position: center center;
  background-size: cover;
  position: relative;
}

.staff-content .staff-thumbnail .text {
  padding: 20px;
  background: rgba(35, 35, 35, 0.8);
  color: #fff;
  text-align: center;
  width: calc(100% - 50px);
  position: absolute;
  height: calc(100% - 50px);
  left: 25px;
  top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.6);
  transition: all 0.3s ease-in;
  opacity: 0;
  visibility: hidden;
}
.staff-content .staff-thumbnail .text p {
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1.4;
  display: block;
}
.staff-content .staff-thumbnail .text h2 {
  margin: 0 0 3px;
  padding: 0;
  font-size: 19px;
  line-height: 1.4;
}
.staff-content .staff-item .staff-thumbnail .text {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}
.staff-content a.open-popup-link {
  cursor: pointer;
}
.mfp-content .popup-content {
  display: block !important;
  padding-top: 40px;
}
.mfp-content .popup-content button.mfp-close {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.mfp-content .popup-content button.mfp-close::before,
.mfp-content .popup-content button.mfp-close::after {
  position: absolute;
  content: '';
  height: 20px;
  width: 1px;
  background-color: #fff;
  top: 10px;
  right: 20px;
  transform: rotate(45deg);
}
.mfp-content .popup-content button.mfp-close::after {
  transform: rotate(-45deg);
}
.mfp-content .popup-content .popup-content-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  background-color: #fff;
  display: flex;
  padding: 50px;
}

.mfp-content .popup-content .popup-content-inner .left {
  width: 50%;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}
.mfp-content .popup-content .popup-content-inner .right { 
  width: 50%;
  padding-left: 50px;
}
.mfp-content .popup-content .popup-content-inner .left img {
  width: 48%;
  object-fit: cover;
}
}
.mfp-content .popup-content .popup-content-inner .right h2 {
  font-size: 36px;
  margin: 0 0 5px; /* Reduced the bottom margin */
  line-height: 1;
  color: #111111 !important;
}
.mfp-content .popup-content .popup-content-inner .right > p {
  font-size: 14px;
  margin: 0;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 54px;
  color: #111111;
  margin-bottom: 20px; /* Added bottom margin to create more space between the designation and the content */
}
.mfp-content .popup-content .popup-content-inner .right .content {
  line-height: 1.4;
  font-size: 14px;
  color: #111;
  font-weight: 300;
  margin-top: 20px; /* Added top margin to create more space between the content and the designation */
}
.mfp-content .popup-content .popup-content-inner .right div#links a {
  width: 40px;
  height: 35px;
  border: 1px solid #111;
  display: flex;
  margin-right: 15px;
  align-items: center;
  justify-content: center;
}
.mfp-content .popup-content .popup-content-inner .right div#links {
  display: flex;
  align-items: center;
  margin-bottom: 10px; /* Added margin to the bottom of the social media links for better spacing */
}
.mfp-content .popup-content .popup-content-inner .right div#links a svg {
  width: 18px;
  height: auto;
  transition: all 0.3s ease-in;
}
.mfp-content .popup-content .popup-content-inner .right div#links a:hover svg {
  transform: translateY(-4px);
}
.mfp-auto-cursor .mfp-container .mfp-content {
  height: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Staff */

#loader-wrapper {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: inline-block;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
}
.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 1199px) {
  .portfolio-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .filter-form .top {
    gap: 20px;
  }
  .filter-form .bottom button {
    padding: 9px 25px;
    font-size: 16px;
  }
  .select-wrap span.select2-selection {
    height: 45px;
  }
  .staff-content {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}
@media screen and (max-width: 1024px) {
  .portfolio-content .portfolio-item .hover-details h3.title {
    font-size: 12px;
  }
  .staff-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .staff-content .staff-thumbnail {
    height: 240px;
  }
	.staff-content .staff-thumbnail {
	    background-image: url('<?php the_field("staff-hover"); ?>') !important;
		height: 240px;
}
  .mfp-content .popup-content .popup-content-inner .left {
    width: 250px;
    height: 250px;
  }
  .mfp-content .popup-content .popup-content-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  background-color: #fff;
  display: flex;
  padding: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Added box-shadow for a subtle 3D effect */
}
  }
  .mfp-content .popup-content .popup-content-inner .right {
    width: calc(100% - 250px);
    padding-left: 20px;
  }
  .mfp-content .popup-content .popup-content-inner .right h2 {
    font-size: 30px;
    margin: 0 0 14px;
	color: #111111;
	line-height:50%;
  }
  .mfp-content .popup-content .popup-content-inner .right > p {
    line-height: 30px;
  }
  .portfolio-filter .top label {
    font-size: 14px;
  }
}

@media screen and (max-width: 767px) {
  .portfolio-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 640px) {
  .filter-form .top {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 10px;
  }
  .portfolio-content {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .staff-content {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .staff-content .staff-thumbnail {
    height: 280px;
  }
   .popup-content .popup-content-inner {
    flex-wrap: wrap;
  }
  .popup-content .popup-content-inner .left {
    width: 100%;
    margin: auto;
    max-width: 250px;
  }
 .popup-content .popup-content-inner .right {
    width: 100%;
    padding: 0;
    text-align: center;
    padding-top: 20px;
  }
  .popup-content .popup-content-inner .right div#links {
    justify-content: center;
  }
  .popup-content .popup-content-inner .right h2 {
    line-height: 1;
  }
  .popup-content {
    padding-top: 80px;
  }
}
.staff-name{
	margin:0px !important	
}

h3.staff-name{
	font-size:120%
}
h3.staff-name{
	line-height:100%
}
h3.staff-name{
	padding-top:5%
}
h3.staff-name{
	padding-bottom:2%
}
h3.staff-name {
	text-align: center;
}
p.role{
	font-size:90%
}
p.role{
	text-align: center;
}
p.role{
	line-height: 150%;
}
.hidden {
  display: none;
}
.staff-hover-wrapper:hover .staff-designation {
    display: none;
}

.staff-hover-wrapper:hover .staff-designation-hover {
    display: inline;
}

.staff-designation-hover {
    display: none;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover, .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}



