#cruiseShipBody {
  background-color: #fff;
  margin-right: 0;
  margin-left: 0;
  border: thin solid #bdc3ca;
}

#cruiseShipBody > tbody > tr:first-child > td > img {
  width: 100%;
}

/* max-width is kept in preference to the modern (width <= 500px) range syntax,
   which needs Safari 16.4+/Chrome 104+ -- this is the mobile breakpoint, so the
   browsers that would lose it are exactly the ones that need it. */
/* stylelint-disable-next-line media-feature-range-notation */
@media (max-width: 500px) {
  .luxuryCruiseDetails > tbody > tr:first-child > td {
    width: 100%;
    display: block;
  }

  .luxuryCruiseDetails > tbody > tr:first-child > td:first-child > img {
    width: 100%;
  }

  .saleBox > tbody > tr:first-child > td {
    width: 100%;
    text-align: center;
    display: block;
  }

  .saleBox > tbody > tr:first-child > td:first-child > img {
    width: 50%;
  }
}

.luxuryCruiseDetails td {
  padding: 0;
}

.cruisecontentHdr {
  font-size: 16px;
  font-weight: bold;
  color: #033669;
  padding: 0 0 4px;
}

.cruisesalesHdr {
  color: #f00;
  font-weight: bold;
  font-style: italic;
  font-size: 23px;
  margin-left: 4px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.saleBox {
  background-color: #f3f3f3;
  border: thin solid #bdc3ca;
}

.cruisecontentsaleHdr {
  color: #f00;
  font-weight: bold;
  font-size: 15px;
}

.saleDetails {
  font-size: 11px;
  font-style: italic;
  padding: 5px 0 5px 2px;
}

/* The ship-facts note sits under the cruise line panels and needs more
   separation from the paragraph above it than the sale disclaimers do. */
.shipFactsNote {
  padding-top: 15px;
}

.luxuryCruiseDetails {
  padding: 6px;
  font-size: 12px;
}

.luxuryCruiseLogo {
  padding-bottom: 7px;
}

#TabbedPanels1 td.luxuryCruiseAwardHdr {
  padding-top: 7px;
}

#TabbedPanels1 td.luxuryCruiseAwards {
  padding-top: 4px;
}

.luxuryCruisePic {
  padding-right: 7px;
}

.cruiseLinesMore {
  background-color: #d8e9fa;
  font-size: 12px;
  padding-left: 7px;
}

.luxuryCruiseMore {
  margin-top: 7px;
}

.cruiseLinesMore .offerdetails {
  padding-left: 7px;
}

/* Angled end-cap for the "learn more / view deals" box. Replaces the
   sale-angled-end-blue-lg.gif that used to sit in a second table cell:
   CSS keeps the fill one flat colour and removes the hand-tuned widths. */
.cruiseLinesMoreAngled {
  display: inline-block;
  margin-top: 7px;
  padding: 5px 34px 5px 7px;
  background-color: #d8e9fa;
  font-size: 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
}

/* Angled, stroked, shadowed photo stack for the panels that have one.
   The angles, white borders, shadows and overlap are applied here rather
   than composited into a flat JPG, so the photos can be swapped singly.
   Photos are supplied at 392x248 and render at 180x114, above 2x.
   The 237px total width matches the flat .luxuryCruisePic panels. */
.luxStack {
  box-sizing: border-box;
  width: 237px;
  padding: 8px 7px 14px 6px;
}

/* These sit after the higher-specificity #cruiseShipBody image rule at the top
   of the file, which no-descending-specificity objects to. The two can never
   match the same element -- #cruiseShipBody is the cruise-ship page's table --
   so reordering would only move the legacy rule around for the linter's sake. */
/* stylelint-disable no-descending-specificity */
.luxStack img {
  display: block;

  /* 180x114 of photo inside a 5px white border. Stated as the border box so the
     stack comes out the same size whichever box model the page inherits. */
  box-sizing: border-box;
  width: 190px;
  height: 124px;

  /* every stack photo is cropped to 392x248 by the asset pipeline, so this
     only matters if one ever arrives at another size: crop it, don't squash it. */
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 45%);
  margin: 0 0 -10px;
  position: relative;
}

/* master.css sets #original_adc_content table img { display: inline-block } with
   ID specificity, which beats the display: block above and lays the four photos
   out in a row instead of stacking them. The declaration is repeated rather than
   moved so the stack still holds up outside that wrapper. */
#original_adc_content .luxStack img {
  display: block;
}

.luxStack img:nth-child(1) {
  transform: rotate(-2.4deg);
  margin-left: 8px;
  z-index: 4;
}

.luxStack img:nth-child(2) {
  transform: rotate(1.8deg);
  margin-left: 26px;
  z-index: 3;
}

.luxStack img:nth-child(3) {
  transform: rotate(-1.6deg);
  margin-left: 6px;
  z-index: 2;
}

.luxStack img:nth-child(4) {
  transform: rotate(2.2deg);
  margin-left: 24px;
  z-index: 1;
}

/* the overlap margin applies between photos only; on the last one it would
   shorten the container and crop its drop shadow. */
.luxStack img:last-child {
  margin-bottom: 0;
}
/* stylelint-enable no-descending-specificity */

/* "Luxury Suites on Mainstream Cruise Ships" */
.enclaveSection {
  display: block;
  padding-top: 34px;
}

.enclaveIntro {
  font-size: 12px;
  line-height: 1.6;
  padding-top: 10px;
}

.enclaveList {
  width: 100%;
  margin-top: 22px;
  border-top: 1px solid #d3dce5;
}

.enclaveList td {
  padding-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #d3dce5;
  vertical-align: top;
}

/* #original_adc_content table td in master.css sets vertical-align: middle with
   ID specificity, so the top alignment has to be qualified the same way or the
   logo floats to the middle of a tall description cell. */
#original_adc_content .enclaveList td {
  vertical-align: top;
}

.enclaveLogoCell {
  width: 186px;
  padding-right: 22px;
  text-align: center;
}

.enclaveLogo {
  display: block;
  margin: 0 auto 10px;

  /* brand marks vary widely in aspect; keep them inside the cell and let
     each one keep its own proportions. */
  max-width: 186px;
  max-height: 76px;
  height: auto;
}

/* the same ID rule turns the enclave logos into inline-block, which ADC renders
   as block; left alone they pick up an inline baseline gap under each mark. */
#original_adc_content .enclaveLogo {
  display: block;
}

.enclaveName {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #033669;
  line-height: 1.25;
}

.enclaveLine {
  display: block;
  font-size: 11px;
  color: #5a6b7d;
  padding-top: 3px;
}

.enclaveDesc {
  font-size: 12px;
  line-height: 1.6;
}

.enclaveMore {
  padding-top: 14px;
}

.enclaveFooter {
  font-size: 12px;
  line-height: 1.6;
  padding-top: 18px;
}
