/* Recgood Photography Widget – Elementor (presisi dari photography/style.css, prefix rg-photo-) */

.rg-photo-container {
  column-count: 3;
  column-gap: 24px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.rg-photo-item {
  position: relative;
  display: block;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  break-inside: avoid;
  background-color: #1a1a1a;
  text-decoration: none;
  color: inherit;
}

.rg-photo-item img,
.rg-photo-item .rg-photo-img,
.elementor .rg-photo-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.rg-photo-item:hover img,
.rg-photo-item:hover .rg-photo-img {
  transform: scale(1.05);
}

.rg-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
}

.rg-photo-item:hover .rg-photo-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rg-photo-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
  pointer-events: none;
}

.rg-photo-name {
  color: #fff;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.32px;
}

.rg-photo-type {
  color: #aaa;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.28px;
  text-align: right;
}

@media (max-width: 1024px) {
  .rg-photo-container {
    column-count: 3;
    column-gap: 14px;
  }

  .rg-photo-item {
    margin-bottom: 14px;
    border-radius: 8px;
  }

  .rg-photo-overlay {
    padding: 14px;
  }

  .rg-photo-name {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.16px;
  }

  .rg-photo-type {
    font-size: 10px;
    letter-spacing: -0.12px;
  }
}

@media (max-width: 786px) {
  .rg-photo-container {
    column-count: 2;
    column-gap: 8px;
  }

  .rg-photo-item {
    margin-bottom: 8px;
    border-radius: 8px;
  }

  .rg-photo-overlay {
    padding: 10px;
  }

  .rg-photo-name {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: -0.16px;
  }

  .rg-photo-type {
    font-size: 6px;
    letter-spacing: -0.12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rg-photo-item img,
  .rg-photo-item .rg-photo-img,
  .rg-photo-overlay {
    transition-duration: 0.1s !important;
  }
}

@media (max-width: 767px){
	.rg-photo-name{
		color: #FFF;
font-family: "General Sans";
font-size: 8px;
font-style: normal;
font-weight: 600;
line-height: normal;
letter-spacing: -0.16px;
	}
	
	.rg-photo-type{
		color: #AAA;
font-family: "General Sans";
font-size: 6px;
font-style: normal;
font-weight: 500;
line-height: normal;
letter-spacing: -0.12px;
	}
	
	.rg-photo-item{
border-radius: 4.67px;
	}
}
