.form--inline.clearfix .form-item.js-form-wrapper.form-wrapper {
	margin-right: 20px;
}
.page-title {
	padding-left: 0 !important;
}
.form--inline details > summary { 
border: 1px solid #7B7B7B;
font-weight: 500;
letter-spacing: 0.02em;
font-size: 1.14em;
line-height: 1.1;
padding: 12px 5px 11px 18px;
margin: 0;
min-width: 246px;
}
.form--inline details > summary .summary {
    float: right;
    display: inline-block;
    background-image: url(/themes/custom/focalpoint2023/img/icon-chevron-down.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 10px;
    width: 16px;
    height: 16px;
}

.form--inline details[open] > summary .summary {
  transform: rotate(180deg);
}

/*
 * Active filter pill container.
 */
.view-gallery-new .active-filters-wrapper {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 18px 0;
}

.view-gallery-new
.active-filters-wrapper--empty {
  display: none;
}

/*
 * Individual active pill.
 */
.view-gallery-new .active-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  min-height: 24px;
  max-width: 100%;
  padding: 0 5px 0px 5px;
  border: 1px solid #b7b7b7;
  border-radius: 0;
  background:#e9e8e9;
  color: #222;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  border-radius: 996px; 
}

.view-gallery-new .active-filter-pill:hover {
  border-color: #333;
  }

.view-gallery-new
.active-filter-pill:focus-visible {
  border-color: #005ea8;
  outline: 2px solid #005ea8;
  outline-offset: 2px;
}

.view-gallery-new .active-filter-pill__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.view-gallery-new .active-filter-pill__close {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #222;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

.active-filter-dropdown-hidden,
.active-filter-option-hidden {
  display: none !important;
}
.details-wrapper.column-count-6 {
	left: auto !important;
    right: -502px;
}

.details-wrapper.column-count-5 {
	left: auto !important;
    right: -381px;
}
.details-wrapper.column-count-4 {
    left: auto !important;
    right: -310px;
}
.details-wrapper.column-count-3 {
    left: auto !important;
    right: -280px;
}
.view-gallery-new .bef-exposed-form {
    margin: 0 0 30px;
}

/* Desktop only */
@media (min-width: 1024px) {
	.form-checkboxes.bef-checkboxes{
		display: grid;
		grid-auto-flow: column;
		grid-template-rows: repeat(12, auto);
		grid-auto-columns: minmax(220px, 1fr);
		width: fit-content;
		max-width: calc(100vw - 100px);
		overflow-x: auto;
		padding: 15px;
	}
}


/*
* added for floating dropdown values
**/

@media (min-width: 1024px) {

  .form--inline details {
    position: relative;
    width: 260px;
    min-width: 260px;
  }

  .form--inline details > summary {
    width: 100%;
    box-sizing: border-box;
  }

  .form--inline details .details-wrapper {
    /* display: none; */
  }

  .form--inline details[open] .details-wrapper {
	  /* display: block; */
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #d7d7d7;
    width: max-content;
    min-width: 100%;
  }
  .form--inline details:last-child[open] .details-wrapper {
	left: auto;
	right: -380px;
  }

}

/*
* floating dropdown values ends here
**/
/*
 * Tablet.
 */
@media (min-width: 768px) and (max-width: 1023px) {

  .view-gallery-new .active-filters-wrapper {
    gap: 8px;
    margin: 15px 0;
  }

  .view-gallery-new .active-filter-pill {
    min-height: 40px;
  }
}

/*
 * Mobile.
 */
@media (max-width: 767px) {

	.view-gallery-new .active-filters-wrapper {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		margin: 12px 0; 
		display: inherit;
	}
	.view-gallery-new .active-filter-pill {
		width:auto;
		min-height: 44px;
		margin-right: 10px;
        margin-top: 10px;
	}
	.form--inline.clearfix .form-item.js-form-wrapper.form-wrapper {
		padding-right: 0;
		float: none;
	}	
}
.view-gallery-new .button.js-form-submit.form-submit {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: black;
    text-transform: none;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}
.view-gallery-new .button.js-form-submit.form-submit:hover {
	text-decoration: underline;	
}
.view-gallery-new,
.view-gallery-duplicate {
  margin: 0 0 50px;
}

.view-gallery-new .form-item-application-type-op ,
.view-gallery-duplicate .form-item-application-type-op {
  clip: rect(0, 0, 0, 0);
  height: 1px;
  position: absolute;
  width: 1px;
}

.view-gallery-new .view-content,
.view-gallery-duplicate .view-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 16px;
  row-gap: 16px;
}

.view-gallery-new .view-content > div,
.view-gallery-duplicate .view-content > div {
  overflow: hidden;
  position: relative;
}

.view-gallery-new .view-content > div img,
.view-gallery-duplicate .view-content > div img {
  width: 320px;
  height: 188px;
  max-width: none;
}

.view-gallery-new .view-content > div:nth-child(11n + 1),
.view-gallery-new .view-content > div:nth-child(11n + 3),
.view-gallery-new .view-content > div:nth-child(11n + 4) {
  grid-row: span 2;
}

#block-focalpoint2023-mainpagecontent .view-gallery-new .view-content > div:nth-child(11n + 1) img,
#block-focalpoint2023-mainpagecontent .view-gallery-new .view-content > div:nth-child(11n + 3) img,
#block-focalpoint2023-mainpagecontent .view-gallery-new .view-content > div:nth-child(11n + 4) img {
  height: 394px;
  width: auto !important;
}

.view-gallery-new .view-content > div:nth-child(11n + 2),
.view-gallery-new .view-content > div:nth-child(11n + 6),
.view-gallery-new .view-content > div:nth-child(11n + 8) {
  grid-row: span 2;
  grid-column: span 2;
}

#block-focalpoint2023-mainpagecontent .view-gallery-new .view-content > div:nth-child(11n + 2) img,
#block-focalpoint2023-mainpagecontent .view-gallery-new .view-content > div:nth-child(11n + 6) img,
#block-focalpoint2023-mainpagecontent .view-gallery-new .view-content > div:nth-child(11n + 8) img {
  width: 100%;
  height: auto;
}
.active-filter-pill__facet {
font-weight: 700;
}
 
.active-filter-pill__option {
font-weight: 400;
}
 
.active-filter-pill__close {
margin-left: 6px;
}
@media (max-width: 1390px) {
  .view-gallery-new .view-content > div:nth-child(11n + 2) img,
  .view-gallery-new .view-content > div:nth-child(11n + 6) img,
  .view-gallery-new .view-content > div:nth-child(11n + 8) img {
    height: 394px;
    width: auto;
  }
  #block-focalpoint2023-mainpagecontent .view-gallery-new .view-content > div:nth-child(11n + 2) img,
  #block-focalpoint2023-mainpagecontent .view-gallery-new .view-content > div:nth-child(11n + 6) img,
  #block-focalpoint2023-mainpagecontent .view-gallery-new .view-content > div:nth-child(11n + 8) img {
    height: 394px;
    width: auto;
  }
}

.view-gallery-new .view-content > div:nth-child(11n + 8),
.view-gallery-duplicate .view-content > div:nth-child(11n + 8) {
  grid-row: span 3;
  grid-column: span 3;
}

@media (max-width: 1390px) {
  #block-focalpoint2023-mainpagecontent  .view-gallery-new .view-content > div:nth-child(11n + 8) img ,
  .view-gallery-duplicate .view-content > div:nth-child(11n + 8) img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 1060px) {
  #block-focalpoint2023-mainpagecontent .view-gallery-new .view-content > div:nth-child(n),
  .view-gallery-duplicate .view-content > div:nth-child(n) {
    grid-row: auto;
    grid-column: auto;
  }

  #block-focalpoint2023-mainpagecontent .view-gallery-new .view-content > div:nth-child(n) img,
  .view-gallery-duplicate .view-content > div:nth-child(n) img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 1060px) {
  .view-gallery-new .view-content,
  .view-gallery-duplicate .view-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .view-gallery-new .view-content,
  .view-gallery-duplicate .view-content {
    grid-template-columns: 1fr;
  }
}

