/* common texts */
.image-content-section {
  --inner-border-color: var(--white);
  --outer-border-color: var(--black);
  overflow: hidden;
}

.section-content-title {
  margin-bottom: 21px;
}

.section-content-body .body-text {
  color: var(--very-dark-gray);
}

.section-link-section {
  margin-top: 30px;
  display: flex;
  justify-content: flex-start;
}

.section-icon-field {
  margin-bottom: 40px;
}

/* common for all three image block section */
.image-block-section-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/* common texts end here */


/* image blocks section */

.image-content-section .section-image-field-inner:nth-child(1) {
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  justify-content: end;
}

.photo-frame-block {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  right: 0px;
  top: 0px;
  max-width: 472px;
}

.photo-frame {
  height: 100%;
  width: 100%;
  border-right: 54px solid var(--inner-border-color);
  border-left: 54px solid var(--inner-border-color);
}

.section-image {
  width: 100%;
  height: 100%;
}

.section-image img {
  width: 100%;
  height: 492px;
  object-fit: cover;
  object-position: right center;
}

.image-content-section .views-row:nth-child(even) .section-image img {
  object-position: left center;
}

.section-content-field {
  display: flex;
  align-items: center;
  padding: 0px 100px 0px 100px;
}

.section-content-field-inner {
  width: 100%;
  max-width: 450px;
}

/* second section */
.image-content-section .views-row {
  margin-top: -14px;
}

.image-content-section .views-row:first-child {
  margin-top: 0;
}

.image-content-section .views-row:nth-child(even) .photo-frame-block {
  left: 0;
}

.image-content-section .views-row:nth-child(even) .section-content-field {
  display: flex;
  justify-content: end;
  padding-top: 14px;
}

.image-content-section .views-row:nth-child(even) .section-image-field {
  left: -14px;
  width: calc(100% + 14px);
  position: relative;
}

/* .image-content-section .views-row:nth-child(even) .section-content-field {
  align-items: normal;
}
 */

/* .image-content-section .views-row:nth-child(odd):first-child .section-content-field .section-content-field-inner {
  margin-top: 95px;
}

.image-content-section .views-row:nth-child(even) .section-content-field .section-content-field-inner,
.image-content-section .views-row:nth-child(odd) .section-content-field .section-content-field-inner {
  margin-top: 109px;
}

*/

/* .image-content-section .views-row:nth-child(even) .section-image-text {
  position: absolute;
  top: 100px;
  left: 11%;
  font-size: 20px;
  color: var(--primary-color);
  opacity: 27%;
  font-family: var(--primary-font);
  font-weight: var(--prata-regular);
  line-height: 20px;
} */

/* photo frame animation */
.photo-frame::before,
.photo-frame::after {
  box-sizing: inherit;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
}

.photo-frame::before,
.photo-frame::after {
  border: 14px solid transparent;
  width: 0;
  height: 0;
  z-index: 1;
}

.photo-frame::before {
  top: 0;
  right: 0;
}

.photo-frame::after {
  bottom: 0;
  left: 0;
  opacity: 0;
}


.is-border-animated .photo-frame::before,
.is-border-animated .photo-frame::after {
  width: 100%;
  height: 100%;
}

.is-border-animated .photo-frame::before {
  border-left: none;
  border-top: none;
  border-right-color: var(--outer-border-color);
  border-bottom-color: var(--outer-border-color);
  /* org */
  /* transition: height .4s ease-out, width .4s ease-out .4s; */

  /* new .3s */
  transition: height .3s ease-out, width .3s ease-out .3s;

  /* new .25s*/
  /* transition: height .25s ease-out, width .25s ease-out .25s; */

}

.is-border-animated .photo-frame::after {
  border-right: none;
  border-bottom: none;
  border-top-color: var(--outer-border-color);
  border-left-color: var(--outer-border-color);
  opacity: 1;
  /* org */
  /* transition: opacity 0s ease-out 0.8s, height 0.4s ease-out 0.8s, width 0.4s ease-out 1.2s; */

  /* new .3s */
  transition: opacity 0s ease-out 0.6s, height 0.3s ease-out 0.6s, width 0.3s ease-out .9s;

  /* new .25*/
  /* transition: opacity 0s ease-out 0.5s, height 0.25s ease-out 0.5s, width 0.25s ease-out .75s; */
}

/* even */
.image-content-section .views-row:nth-child(even) .photo-frame::before {
  border-right: none !important;
  border-left: 14px solid transparent;
  top: auto;
  bottom: 0;
  opacity: 0;
}

.image-content-section .views-row:nth-child(even).is-border-animated .photo-frame::before {
  opacity: 1;
  border-left-color: var(--outer-border-color);
  /* org */
  /* transition: opacity 0s ease-out 0.8s, width .4s ease-out 0.8s, height .4s ease-out 1.2s; */

  /* new .3s*/
  /* transition: opacity 0s ease-out 0.8s, width .3s ease-out 0.6s, height .3s ease-out .9s; */

  /* new .25s */
  transition: opacity 0s ease-out 0.5s, width .25s ease-out 0.5s, height .25s ease-out .75s;
}

.image-content-section .views-row:nth-child(even) .photo-frame::after {
  border-left: none !important;
  border-right: 14px solid transparent;
  top: 0;
  bottom: auto;
}

.image-content-section .views-row:nth-child(even).is-border-animated .photo-frame::after {
  border-right-color: var(--outer-border-color);

  /* org */
  /* transition: opacity 0s ease-out 0s, width 0.4s ease-out 0s, height 0.4s ease-out 0.4s; */

  /* new .3s */
  /* transition: opacity 0s ease-out 0s, width 0.3s ease-out 0s, height 0.3s ease-out 0.3s; */

  /* new .25s */
  transition: opacity 0s ease-out 0s, width 0.25s ease-out 0s, height 0.25s ease-out 0.25s;
}

/* .is-animated .photo-frame-border{
    width: 0;
    height: 0;
    border-left: 14px solid var(--secondary-color);
    border-bottom: 13.5px solid var(--secondary-color);
    position: absolute;
    left: 0;
    transition: .7s;
  }
 */

/* new */

.photo-frame {
  border: none;
  padding: 0;
}

.photo-frame-border {
  width: 100%;
  height: 100%;
  position: relative;
  padding-top: 56px;
  padding-bottom: 56px;
  padding-left: 13px;
}

.photo-frame-border:before {
  content: "";
  height: 0;
  width: 59px;
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--inner-border-color);
  /* org */
  /* transition: height .4s ease-out 0.8s; */

  /* new .3s */
  transition: height .3s ease-out 0.6s;

  /* new .25s*/
  /* transition: height .25s ease-out 0.5s; */
}

.image-content-section .views-row:nth-child(even) .photo-frame-border:before {
  /* org */
  /* transition: height .4s ease-out 1.2s; */

  /* new .3s */
  transition: height .3s ease-out .9s;

  /* new .25s */
  transition: height .25s ease-out .75s;
}

.photo-frame-border:after {
  content: "";
  height: 0;
  width: 59px;
  position: absolute;
  right: 0;
  top: 0;
  background: var(--inner-border-color);
  /* org */
  /* transition: height .4s ease-out 0s; */

  /* new .3s */
  transition: height .3s ease-out 0s;

  /* new .25*/
  /* transition: height .25s ease-out 0s; */
}

.image-content-section .views-row:nth-child(even) .photo-frame-border:after {
  /* org */
  /* transition: height .4s ease-out 0.4s; */

  /* new .3s */
  transition: height .3s ease-out 0.3s;

  /* new .25s */
  transition: height .25s ease-out 0.25s;
}

.is-border-animated .photo-frame-border:before,
.is-border-animated .photo-frame-border:after {
  height: 100%;
}

.is-photo-frame-animated .photo-frame-inner {
  width: 100%;
  height: 100%;
  padding-left: 40px;
  padding-right: 54px;
  /* background-color: rgba(0, 0, 0, 0.35); */
  transition: .3s;
}

.is-photo-frame-animated .photo-frame-inner-2 {
  width: 100%;
  height: 100%;
  padding: 20px;
  font-family: var(--primary-font);
  font-size: 18px;
  font-weight: var(--prata-regular);
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.is-photo-frame-animated .photo-frame-inner-contents {
  display: flex;
  flex-direction: column;
}

.is-photo-frame-animated .photo-frame-inner-contents ul {
  display: block;
  padding: 0;
  margin-bottom: 0;
}

.photo-frame-inner-contents li:not(:last-child) {
  margin-bottom: 25px;
}

.is-photo-frame-list-anim .photo-frame-inner-contents .photo-frame-inner-lists {
  opacity: 1;
  transform: translateY(0px);
  transition: .5s;
}

.photo-frame-inner-lists span {
  padding: 5px 10px;
  background-color: rgba(0, 0, 0, 0.6);
  display: inline-block;
}


.photo-frame-inner-contents .photo-frame-inner-lists {
  opacity: 0;
  transform: translateY(20px);
  transition: .5s;
}

.photo-frame-inner-contents ul {
  display: none;
}

/* new styles */
.image-content-section {
  --frame-border-width: 59px;
}

.image-content-section .views-row:nth-child(odd) .section-image {
  padding-right: var(--frame-border-width);
}

.image-content-section .views-row:nth-child(even) .section-image {
  padding-left: var(--frame-border-width);
}

.image-content-section .section-image {
  position: relative;
  z-index: 1;
}

.photo-frame-block {
  z-index: 2;
}

.image-content-section.img-with-tint .section-image:after {
  content: "";
  left: 0;
  top: 0;
  width: var(--tint-width);
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  position: absolute;
  opacity: 0;
  transition: all 0.5s linear 0s;
}

.image-content-section.img-with-tint .is-photo-frame-animated .section-image:after {
  opacity: 1;
}

.image-content-section .views-row:nth-child(even) .section-image:after {
  left: auto;
  right: 0;
}
