/* Tom Portfolio basic styles */
.tp-wrap {
	width: 100%;
}
.tp-filters {
    display: block;
    margin: 0 0 25px 0;
    line-height: 1.2;
    font-size: 18px;
    color: #70ad6f;
}

.tp-filters a {
  text-decoration: none;
  color: inherit;
  transition: color .15s ease;
}

.tp-filters a:hover {
	color: #7ed67d;
	text-shadow: 0 0 0 #7ed67d, 0.5px 0 0 #7ed67d;
}

.tp-filters a.is-active {
  	color: #fff;
	text-shadow: 0 0 0 #7ed67d, 0.5px 0 0 #7ed67d;
  	text-decoration: none;
}

.tp-pipe {
    display: inline-block;
    margin: 0 5px;
    opacity: 1;
    color: #70ad6f;
}

/* grid */
.tp-grid {
  	display: grid;
  	grid-template-columns: repeat(3, minmax(0, 1fr));
  	gap: 40px;
}

@media (max-width: 980px) {
  	.tp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
  	.tp-filters {
		font-size: 16px;
	}
}

@media (max-width: 600px) {
  	.tp-grid {
		grid-template-columns: 1fr;
	}
  	.tp-filters {
		font-size: 16px;
	}
}

.tp-item {
  	padding: 0;
  	border: 0;
  	background: transparent;
  	cursor: pointer;
  	display: block;
  	width: 100%;
}

.tp-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* empty */
.tp-empty {
  padding: 18px 0;
  opacity: .8;
}

/* Modal */
.tp-modal[aria-hidden="true"] {
	display: none;
}
.tp-modal[aria-hidden="false"] {
    display: block;
    z-index: 9999999999;
    position: absolute;
}

.tp-modal__backdrop {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9998;
}

.tp-modal__panel {
    position: fixed;
    background: #000;
    z-index: 9999;
    overflow: hidden;
    inset: 0;
    padding: 15vh 10vw;
}

@media (max-width: 780px) {
  	.tp-modal__panel {
		inset: 0px;
	}
}

.tp-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 60px;
    line-height: 1;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    color: #58de50;
    font-weight: 700;
}
.tp-modal__close:hover {
	color: #c0ffb9;
}

.tp-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(0,0,0,.08);
    width: 60px;
    height: 60px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 60px;
    line-height: 60px;
    z-index: 2;
    color: #58de50;
    font-weight: 700;
}
.tp-modal__nav:hover {
	color: #c0ffb9;
}

.tp-modal__nav--prev {
	left: 10px;
}
.tp-modal__nav--next {
	right: 10px;
}

.tp-modal__content {
    height: 100%;
    display: grid;
    grid-template-columns: 3fr 2fr;
    max-width: 1080px;
    margin: 0 auto;
}

@media (max-width: 900px) {
  .tp-modal__content { grid-template-columns: 1fr; }
}

.tp-modal__left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tp-modal__right {
    padding: 0 40px;
    overflow: auto;
    color: #fff;
}

.tp-modal__title {
    margin: 0;
    line-height: 1.15;
    color: #fff;
    text-transform: unset;
    padding-bottom: 5px;
}

.tp-modal__excerpt p {
  margin: 0 0 25px 0;
}

.tp-modal__body > *:first-child {
	margin-top: 0;
}
.tp-modal__body > *:last-child {
	margin-bottom: 0;
}

.tp-modal__tags {
  	margin-top: 18px;
}

.tp-modal__tags a {
  	text-decoration: unset;
	color: #70ad6f;
}
.tp-modal__tags a:hover {
	color: #7ed67d;
	text-shadow: 0 0 0 #7ed67d, 0.5px 0 0 #7ed67d;
}

.tp-modal__loading[hidden] {
	display: none !important;
}

.tp-modal__loading {
  	position: absolute;
  	inset: 0;
  	background: rgba(255,255,255,.85);
  	display: flex;
  	align-items: center;
  	justify-content: center;
  	z-index: 3;
}

.tp-modal__loading-inner {
  	padding: 10px 14px;
  	border-radius: 8px;
  	background: rgba(0,0,0,.06);
}
